Giter Site home page Giter Site logo

sparkfun / hyperdisplay_ssd1309_arduinolibrary Goto Github PK

View Code? Open in Web Editor NEW
15.0 7.0 9.0 50 KB

Standardized library for control of displays using the SSD1309 driver IC.

Home Page: https://www.sparkfun.com/

License: Other

C++ 100.00%
arduino-library sparkfun arduino display ssd1309

hyperdisplay_ssd1309_arduinolibrary's Introduction

SparkFun HyperDisplay SSD1309 Arduino Library

Standardized library for control of displays using the SSD1309 driver IC.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

Products that use this Library

Version History

License Information

This product is open source!

The code is released under the GPL v3 license. See the included LICENSE.md for more information.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

hyperdisplay_ssd1309_arduinolibrary's People

Contributors

bboyho avatar loricrotser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyperdisplay_ssd1309_arduinolibrary's Issues

ambiguous overloaded call of write(int)

source: https://forum.sparkfun.com/viewtopic.php?f=172&t=53893

output:

C:\Users\dmjaf\Desktop\HUD Project\Sparkfun Artemis Thing Plus\bluetoothSlave\libraries\SparkFun_HyperDisplay_SSD1309\src\HyperDisplay_SSD1309.cpp: In member function 'virtual SSD1309_Status_t SSD1309_Arduino_I2C::writeBytes(uint8_t*, bool, size_t)':

C:\Users\dmjaf\Desktop\HUD Project\Sparkfun Artemis Thing Plus\bluetoothSlave\libraries\SparkFun_HyperDisplay_SSD1309\src\HyperDisplay_SSD1309.cpp:895:20: error: call of overloaded 'write(int)' is ambiguous

    _i2c->write(0x00);

                    ^

In file included from C:\Users\dmjaf\Desktop\HUD Project\Sparkfun Artemis Thing Plus\bluetoothSlave\libraries\SparkFun_HyperDisplay_SSD1309\src\HyperDisplay_SSD1309.h:21,

                 from C:\Users\dmjaf\Desktop\HUD Project\Sparkfun Artemis Thing Plus\bluetoothSlave\libraries\SparkFun_HyperDisplay_SSD1309\src\HyperDisplay_SSD1309.cpp:1:

C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1\libraries\Wire\src/Wire.h:39:20: note: candidate: 'virtual size_t arduino::MbedI2C::write(uint8_t)'

     virtual size_t write(uint8_t data);

                    ^~~~~

In file included from C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/mbed-bridge/core-api/api/Stream.h:25,

                 from C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/mbed-bridge/core-api/api/Client.h:22,

                 from C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/mbed-bridge/core-api/api/ArduinoAPI.h:29,

                 from C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/mbed-bridge/Arduino.h:14,

                 from C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/sdk/ArduinoSDK.h:9,

                 from <command-line>:

C:\Users\dmjaf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.1/cores/arduino/mbed-bridge/core-api/api/Print.h:50:12: note: candidate: 'size_t arduino::Print::write(const char*)'

     size_t write(const char *str) {

x0/y0 are cast to x0w and y0w but never used

Minor compilation warning

x0w and y0w seem unused here, did you mean to use them below?

232     color_t value = data; // have to skip color sequences in buffered writing mode
233
234     hd_hw_extent_t x0w = (hd_hw_extent_t)x0; // Cast to hw extent type to be sure of integer values
235     hd_hw_extent_t y0w = (hd_hw_extent_t)y0;
236
237     SSD1309_Bite_t user = *((SSD1309_Bite_t*)value);
238     if(user.b0){ // Check if the user's bit is set or not (this implies that the user should always set bit 0 of a 'bite' to the pixel value they want)
239         // Need to set the pixel high
240         setWindowPixel(x0, y0, pCurrentWindow);
241     }else{
242         // Need to clear the pixel
243         clearWindowPixel(x0, y0, pCurrentWindow);
244     }
245     // updateRefreshZone( x0, x0, y0, y0);  // Tell where we need updates
246     // refreshDisplay();                    // Perform updates
247 }

HyperDisplay_UG2856KLBAG01_I2C.h: No such file or directory

Hi so why am i missing files in the library? 1.0 and 1.1 tested.

Arduino: 1.8.19 (Windows 10), Placa:"WAVGAT NANO 3.0"

...

Alternatives for HyperDisplay_UG2856KLBAG01_I2C.h: []Example999_Testing:1:10: fatal error: HyperDisplay_UG2856KLBAG01_I2C.h: No such file or directory

ResolveLibrary(HyperDisplay_UG2856KLBAG01_I2C.h) #include "HyperDisplay_UG2856KLBAG01_I2C.h"

-> candidates: [] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

HyperDisplay_UG2856KLBAG01_I2C.h: No such file or directory

SSD1309::lineClear does nothing

Subject of the issue

No change on screen when SSD1309::lineClear is called.

The current code is:

void SSD1309::lineClear(hd_extent_t x0, hd_extent_t y0, hd_extent_t x1, hd_extent_t y1, uint16_t width)
    {
		SSD1309_Bite_t pix;
		pix.bite = 0x00;
    }

Obviously, this line of code is missing:
line( x0, y0, x1, y1, width, (color_t)&pix);
It works fine with it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.