I've had it working. This is the code I used for a Nokia 5110 aka the PCD8544
SPI1.setup({ sck:NodeMCU.D5, mosi:NodeMCU.D7 }); var g = require("PCD8544").connect(SPI1, NodeMCU.D2 /* RS / DC */, NodeMCU.D8 /* CS / CE */, NodeMCU.D1 /*RST*/, function() { g.clear(); g.setRotation(2); //Flip display 180 g.drawString("Hello",0,0); g.drawLine(0,10,84,10); g.flip(); });
Display NodeMCU ESP-12 LED 3V3 3V3 SCLCK D5 GPIO14 DN<MOSI> D7 GPIO13 D/C D2 GPIO04 RST D1 GPIO05 SCE D8 GPIO15 GND GND GND VCC 3V3 3V3
@MrTimcakes 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've had it working. This is the code I used for a Nokia 5110 aka the PCD8544