@zeromem I know SDA/SCL are labelled on the back, but as you noted they're shared with the accelerometer which could cause you issues (eg. the accelerometer is off by default so it may then inadvertently 'clamp' the I2C signals and stop them working).
As I understand it, pins P0.02/3/4 (corresponding to D2/3/4) are completely unused, so I would strongly suggest you use those.
To avoid any confusion try using the software I2C as well, and hopefully it'll work:
var i2c = new I2C();
i2c.setup({scl:D2,sda:D3});
var g = require("SSD1306").connect(i2c, function(){
g.drawString("Hello World!",2,2);
g.flip();
});
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.
@zeromem I know SDA/SCL are labelled on the back, but as you noted they're shared with the accelerometer which could cause you issues (eg. the accelerometer is off by default so it may then inadvertently 'clamp' the I2C signals and stop them working).
As I understand it, pins P0.02/3/4 (corresponding to D2/3/4) are completely unused, so I would strongly suggest you use those.
To avoid any confusion try using the software I2C as well, and hopefully it'll work: