You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • 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
      .....
    
About

Avatar for MaBe @MaBe started