function delays(s){var n=1000; while(n--){}}
spi = new SPI();
spi.setup({sck:A5, miso:A6, mosi:A7});
var nrf = require("NRF24L01P").connect( spi, B0, B1 );
function onInit() {
nrf.init([0,0,0,0,2], [0,0,0,0,1]);
}
onInit();
setInterval(function() {
nrf.masterHandler();
}, 50);
function g1on(){digitalWrite(B9,1);}
function g1of(){digitalWrite(B9,0);}
//function a1on(){digitalWrite(B8,1);}
it works ok, but if I try to add the last (commented) line it doesnt work -
download process doesn't finish properly. - no "=undefined" string.
process.memory() shows nothing criminal -
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.
on my f3discovery i write:
it works ok, but if I try to add the last (commented) line it doesnt work -
download process doesn't finish properly. - no "=undefined" string.
process.memory() shows nothing criminal -
what can be? thanks!