You are reading a single comment by @Andrey and its replies. Click here to read the full conversation.
  • on my f3discovery i write:

    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 -

    >process.memory()
    ={"free":1306,"usage":414,"total":1720,"­history":249,"stackEndAddress":536906916­,"flash_start":134217728,"flash_binary_e­nd":134371320,"flash_code_start":1344450­56,"flash_length":262144}
    
    

    what can be? thanks!

About

Avatar for Andrey @Andrey started