You are reading a single comment by @Andrey and its replies. Click here to read the full conversation.
  • Hi all!
    trying to connect NRF24L01 to my F3Discovery i use the sample

    SPI1.setup({sck:A5, miso:A6, mosi:A7,baud:100000});
    var nrf = require("NRF24L01P").connect( SPI1, B0, B1 );
    function onInit() {
      nrf.init([0,0,0,0,2], [0,0,0,0,1]);
    }
    onInit();
    setInterval(function() {
      nrf.masterHandler();
    }, 50
    

    then try nrf.getAddr(nrf.C.RX_ADDR_P1) to check SPI communication and get:

    >nrf.getAddr(nrf.C.RX_ADDR_P1)
    ERROR: Using '.' operator on undefined at line 1 col 17
    nrf.getAddr(nrf.C.RX_ADDR_P1)
                     ^
    

    why C is undefined and what wrong with It?
    IDE v 0.44.0 espruino 1v63
    I tryed "No minification" and "Simple Optimizations" in
    communication Settings.

About

Avatar for Andrey @Andrey started