That's a very odd one. Please could you post this in a new thread and let me know which board you're using?
If you delete SPI1.setup({ baud: 1000000, sck:A5, mosi:A7 }); and then use this code:
SPI1.setup({ baud: 1000000, sck:A5, mosi:A7 });
// Setup SPI var spi = new SPI(); spi.setup({ baud: 1000000, sck:A5, mosi:A7 }); // Initialise the LCD g = require("PCD8544").connect(spi,A6,B0,B1, function() {
In your onInit function I imagine it'll fix it though.
maybe stupid question, but how do I start a new thread? :-)
@Reinoud 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.
That's a very odd one. Please could you post this in a new thread and let me know which board you're using?
If you delete
SPI1.setup({ baud: 1000000, sck:A5, mosi:A7 });
and then use this code:In your onInit function I imagine it'll fix it though.