This is an 18 bit OLED controller - commonly used in 128x128 OLED Displays.
Support is included in the SSD1351 (About Modules) module, using the Graphics library.
Just wire up as follows. Note: The Seeed module uses a .NET Gadgeteer plug. See that link for wiring suggestions.
.NET Gadgeteer | Espruino | OLED Name |
---|---|---|
1 | 3.3v | 3.3v |
2 | Bat (5v) | 5V |
3 | A3 (GPIO) | Data/Cmd |
4 | B11 (GPIO) | Reset |
6 | B10 (GPIO) | Chip Select |
7 | A7 (MOSI) | Data In |
9 | A5 (SCK) | Clock |
10 | GND | Gnd |
You can use other pins if it is easier (for instance when using the ILSoft module).
SPI1.setup({ mosi:A7, sck:A5, baud:4000000 });
var g = require("SSD1351").connect(SPI1, A3, B10, B11, function() {
g.clear();
g.drawString("Hello",0,0);
g.setFontVector(20);
g.setColor(0,0.5,1);
g.drawString("Espruino",0,10);
});
Note:
(No tutorials are available yet)
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.