I believe the pins 2-6 are used for the flash chip, so best not to use pins 4 & 5.
Change those to say pins 16,17, rewire and see how you get on.
var g = require("SSD1306").connectSPI(SPI2, 16 /DC/, 12 /RST/, go, { cs:17 });
@JumJum - Should we add a warning if these pins are used?
@Wilberforce 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.
I believe the pins 2-6 are used for the flash chip, so best not to use pins 4 & 5.
Change those to say pins 16,17, rewire and see how you get on.
var g = require("SSD1306").connectSPI(SPI2, 16 /DC/, 12 /RST/, go, { cs:17 });
@JumJum - Should we add a warning if these pins are used?