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.
@Andrey started
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 all!
trying to connect NRF24L01 to my F3Discovery i use the sample
then try nrf.getAddr(nrf.C.RX_ADDR_P1) to check SPI communication and get:
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.