wayland/sh1106g-oled-i2c@0.0.5

License: BSD

Arduino library for OLED displays driven by the SH1106G chip. Communication via I2C. Wraps Adafruit_SH130x (https://github.com/adafruit/Adafruit_SH110x). N.B. UNTESTED!
NodeDescription
01-draw-text
Draws text on display.
03-example-rotate-display
Text will be drawn in two different directions.
02-example-draw-shapes
Draw shapes in proportion to display size.
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.
05-example-grid
A grid will be drawn on the display.
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-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.
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.
get-display-dimensions
Get dimensions of display in pixels.
init
Initialize display module.
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.
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.
sh1106g-oled-i2c-device
Create SH1306G OLED device.
draw-circle
Draw a circle. Writes data 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.
To use the nodes in your project you should have the wayland/sh1106g-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.