Before sending the init sequence a reset is needed, guess this is OLED specific. Mine is a 128x32 I2C from Adafruit and has a reset pin.
Should be added to the module as optional parameter and toggled before sending the init sequence.
calling connect:
var g = require("SSD1306").connect(I2C1, start,{pin:PIN});
add to module SSD1306:
......
var addr = 0x3C;
if(options && options.address) addr = options.address;
// reset if pin is given
if (options && options.pin) digitalPulse(options.pin,0,5); // add
// configure the OLED
.....
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.
Before sending the init sequence a reset is needed, guess this is OLED specific. Mine is a 128x32 I2C from Adafruit and has a reset pin.
Should be added to the module as optional parameter and toggled before sending the init sequence.
calling connect:
add to module SSD1306: