function go(){ //g.on(); // write some text g.drawString("Hello World!",2,2); // write to the screen g.flip(); }
// SPI SPI2.setup({sck:18, mosi:23}); var g = require("SSD1306").connectSPI(SPI2, 4 /DC/, 12 /RST/, go, { cs:5 });
no errors, but the OLED doesn't work.
@Aifer started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
function go(){
//g.on();
// write some text
g.drawString("Hello World!",2,2);
// write to the screen
g.flip();
}
// SPI
SPI2.setup({sck:18, mosi:23});
var g = require("SSD1306").connectSPI(SPI2, 4 /DC/, 12 /RST/, go, { cs:5 });
no errors, but the OLED doesn't work.