I2C1.setup({scl:D2,sda:D0});
var g = require("SSD1306").connect(I2C1, function() {
g.clear();
g.drawString("Hello",0,0);
g.flip();
});
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||| || |_|||_|_| http://espruino.com
1v94 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations: http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xef chip 0x4016
Uncaught ReferenceError: "Graphics" is not defined
at line 1 col 20
k(e);var f=Graphics.createArrayBuffer(128,g[4]+1,1,{vertical...
in function "connect" called from line 7 col 2
});
=undefined
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.
What's the problem?
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||| || |_|||_|_|
http://espruino.com
1v94 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xef chip 0x4016