A5.write(0); // GND
A7.write(1); // VCC
// Setup SPI
var spi = new SPI();
spi.setup({ sck:B1, mosi:B10 });
// Initialise the LCD
var g = require("PCD8544").connect(spi,B13,B14,B15, function() {
// When it's initialised, clear it and write some text
g.clear();
g.drawString("Hello World!",0,0);
// send the graphics to the display
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.
I am having similar problems like in this post here
http://forum.espruino.com/conversations/267085/#comment12267999
If I fire this code here the display turns on but doesn't display hello world.
Also if i try this tutorial nothing works in the display
http://www.espruino.com/Pico+CPU+Monitor
Any ideas as to what i am doing wrong.
1 Attachment