You are reading a single comment by @Andrey and its replies. Click here to read the full conversation.
  • sure, I took code from the site: slave:

    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,1], [0,0,0,0,2]);
    }
    onInit();
    setInterval(function() {
      nrf.slaveHandler();
    }, 50);
    

    and master:

    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);
    
About

Avatar for Andrey @Andrey started