wayland/ssd1306-oled-i2c@0.0.9

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
draw-pixel
Draw a pixel.
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.
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.
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.
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-triangle
Draw a triangle. 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.
example-xod-logo
Display and inversion of XOD logo.
example-scroll
Performs a diagonal right scroll for 30 seconds, then stops scrolling.
example-draw-shapes
Draw shapes in proportion to display size.
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.
example-rotate-display
Text will be drawn in two different directions.
get-display-dimensions
Get dimensions of display in pixels.
draw-xod-logo
Draw XOD logo. Logo is 128 x 64 pixels.
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.
stop-scroll
Stop scrolling.
rotate-displayNo description
start-scroll
Activate scroll for all or part of the display. To scroll whole display set FIRST to 00h and LAST to 0Fh.
ssd1306-oled-i2c-device
Create SSD1306 OLED device.
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.