Ok, great! To get started, I'd work off the existing SSD1306 then - add var exports = {} to the top of the edit window in the Web IDE, copy in the module code from here after it, and then instead of using var g = require("SSD1306").connect(I2C1, go);, do var g = exports.connect(I2C1, go);.
Hopefully you can then fiddle with the initialisation code until it works :)
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.
Ok, great! To get started, I'd work off the existing SSD1306 then - add
var exports = {}
to the top of the edit window in the Web IDE, copy in the module code from here after it, and then instead of usingvar g = require("SSD1306").connect(I2C1, go);
, dovar g = exports.connect(I2C1, go);
.Hopefully you can then fiddle with the initialisation code until it works :)