Hi #kai, they're working on a new editor. All you need to do for code is to add ``` but to leave a new line before and after it (I edited your post and it's fine now)
I just tried your code here and it does work. Are you sure it's not just that you don't have a reliable internet connection, so the Web IDE is unable to load the modules? We really need to add an error console to it so it can report these problems properly...
For the timing issue, do you mean you get INTERNAL ERROR: Timeout on SPI RX? Perhaps you could try SPI1.setup({sck:A5, miso:A6, mosi:A7,baud:100000}); instead of SPI1.setup({sck:A5, miso:A6, mosi:A7});. I'm unsure why that happens but I'll try and fix it asap...
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.
Hi #kai, they're working on a new editor. All you need to do for code is to add ``` but to leave a new line before and after it (I edited your post and it's fine now)
I just tried your code here and it does work. Are you sure it's not just that you don't have a reliable internet connection, so the Web IDE is unable to load the modules? We really need to add an error console to it so it can report these problems properly...
For the timing issue, do you mean you get
INTERNAL ERROR: Timeout on SPI RX
? Perhaps you could trySPI1.setup({sck:A5, miso:A6, mosi:A7,baud:100000});
instead ofSPI1.setup({sck:A5, miso:A6, mosi:A7});
. I'm unsure why that happens but I'll try and fix it asap...