Well, removed SPI pin definitions from the board file, built with BOARD=HUMI RELEASE=1 V=1 make, but no luck.
Calling the write() commands after the commented out SPI initialization does nothing. But software SPI does work.
//SPI1.setup({mosi:D9, sck:D10})
//function write(d){SPI1.write(d, D11)}
var spi = new SPI();
spi.setup({mosi:D9, sck:D10});
function write(d){spi.write(d, D11);}
write([0x75,0x78,0x12]);
write([0x04,0xFF,0xbd,0xf7,0xdf,0x0f,0xff,0xff,0xf9,0xff,0xff,0xdf,0xcF,0x00]);
write([0x48]);
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.
Well, removed SPI pin definitions from the board file, built with
BOARD=HUMI RELEASE=1 V=1 make
, but no luck.Calling the
write()
commands after the commented out SPI initialization does nothing. But software SPI does work.