• I still have same error in console, even after sucessful firmware upgrade by ./wiflash

    Uncaught ReferenceError: "Graphics" is not defined
     at line 1 col 20
    k(c);var g=Graphics.createArrayBuffer(128,f[4]+1,1,{vertical...
                       ^
    in function "connect" called from line 1 col 40
    var g = require("SSD1306").connect(I2C1);
                                           ^
    =undefined
    

    I've been trying to upload this code

    pinMode(NodeMCU.D3,'input_pullup');
    pinMode(NodeMCU.D4,'input_pullup');
    
    function draw(){
      g.clear();
      g.drawString("Hello World",0,0);
      g.flip();
    }
    I2C1.setup({scl:NodeMCU.D4,sda:NodeMCU.D3});
    var g = require("SSD1306").connect(I2C1);
    

    I deal with another NodeMcu, before I tried with Lolin board and now with CP2101 chip, but still can't connect OLED

About

Avatar for bigplik @bigplik started