Sorry guys, I've actually found the fix. One really need to add the SPI1.setup() line, and by trial and error I've discovered that the 3 below parameters are the mandatory ones:
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.
Sorry guys, I've actually found the fix. One really need to add the SPI1.setup() line, and by trial and error I've discovered that the 3 below parameters are the mandatory ones:
SPI1.setup({sck:A5, miso:A6, mosi:A7});
SPI1.send([0x20,0b01000111], E3);
With them it works all the time, without it only works some times... (which is really strange :) )