Yes, that should work based on https://www.espruino.com/SSD1306 - but obviously you'll want to change the pin numbers to the pins you have used.
You could also try:
// ... var i2c = new I2C(); i2c.setup({ scl : D20, sda: D19 }); var g = require("SSD1306").connect(i2c, start);
which uses software I2C - either should work
@Gordon started
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.
Yes, that should work based on https://www.espruino.com/SSD1306 - but obviously you'll want to change the pin numbers to the pins you have used.
You could also try:
which uses software I2C - either should work