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
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.
I still have same error in console, even after sucessful firmware upgrade by ./wiflash
I've been trying to upload this code
I deal with another NodeMcu, before I tried with Lolin board and now with CP2101 chip, but still can't connect OLED