You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • But, the initial action of SPI and Graphics module must be in the onInit() function. why?
    And the RST pin must be connected! The cs option must be defined too.

    because connectSPI send some init commands to make the OLED work correct.

    ....  
    setTimeout(function() {
        // configure the OLED
        initCmds.forEach(function(d) {i2c.writeTo(addr, [0,d]);});;
      }, 50);
    ....
    
About

Avatar for MaBe @MaBe started