wayland/sh1107-oled-i2c@0.0.5

License: BSD

Arduino library for OLED displays driven by the SH1107 chip. Communication via I2C. Wraps Adafruit_SH130x (https://github.com/adafruit/Adafruit_SH110x). Tested using a Pimoroni Mono OLED Breakout (1.12" 128x128 pixels) and ESP32.
NodeDescription
04-example-invert-display
A filled circle will be drawn in the centre of the display. Every two seconds the display colour will be inverted.
06-example-chequerboard
A chequerboard will be drawn on the 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-circle
Draw a circle. Writes data to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
draw-pixel
Draw a pixel.
draw-line
Draw a line. Data written to display buffer. To show content of display buffer on screen use node send-buffer-to-display.
03-example-rotate-display
Text will be drawn in two different directions.
05-example-grid
A grid will be drawn on the display.
01-draw-text
Four lines of text will be drawn.
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.
get-display-dimensions
Get dimensions of display in pixels.
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.
02-example-draw-shapes
Draw shapes in proportion to display size.
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.
init
Initialize display module.
rotate-display
Rotate display.
send-buffer-to-display
Push data currently in RAM to 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.
sh1107-oled-i2c-device
Create SH1307 OLED device.
To use the nodes in your project you should have the wayland/sh1107-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.