wayland/ssd1306-oled-i2c@0.0.4

License: BSD

Arduino library for OLED displays driven by the SSD1306 chip. Communication via I2C. Wraps Adafruit_SSD1306 (https://github.com/adafruit/Adafruit_SSD1306).
NodeDescription
clear-display
Clear contents of display buffer (set all pixels to off). Changes buffer contents only, no immediate effect on display. Follow up with a call to send-buffer-to-display, or with other graphics commands as needed by one's own application.
dim-display
Dim display. This has an immediate effect on the display, no need to use the send-buffer-to-display node -- buffer contents are not changed.
draw-circle
Draw a circle. Writes data to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-line
Draw a line. Data written to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-pixel
Draw a pixel.
draw-rectangle
Draw a rectangle. Writes data to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-rounded-rectangle
Draw a rounded rectangle. Writes data to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-text
Writes string to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-triangle
Draw a triangle. Writes data to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-xod-logo
Draw XOD logo. Logo is 128 x 64 pixels.
example-draw-shapes
Draw shapes in proportion to display size.
example-scroll
Performs a diagonal right scroll for 30 seconds, then stops scrolling.
example-xod-logo
Display and inversion of XOD logo.
get-display-dimensions
Get dimensions of display in pixels.
init
Initializes an SSD1306 OLED device.
invert-display
Enable or disable display invert mode (white-on-black vs black-on-white). This has an immediate effect on the display, no need to use the send-buffer-to-display node -- buffer contents are not changed, rather a different pixel mode of the display hardware is used. When enabled, drawing BLACK (value 0) pixels will actually draw white, WHITE (value 1) will draw black.
send-buffer-to-display
Push data currently in RAM to SSD1306 display. Drawing operations are not visible until this function is called. Call after each graphics command, or after a whole set of graphics commands, as best needed by one's own application.
ssd1306-oled-i2c-device
Create SSD1306 OLED device.
start-scroll
Activate scroll for all or part of the display. To scroll whole display set FIRST to 00h and LAST to 0Fh.
stop-scroll
Stop scrolling.
To use the nodes in your project you should have the wayland/ssd1306-oled-i2c library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.