由于我没有RPi,我很乐意使用常规PC与nRF24L01 +(连接到Arduino,然后连接到带USB的PC)进行通信。比如IP over serial。
PC - > USB - > Arduino + nRF24L01 +
是否可以或我需要RPi?
我试过在Ubuntu x86上编译tmrh20 RF24: make -B RF24_SPIDEV = 1 但它给了我错误: RF24_config.h:58:23:致命错误:Arduino.h:没有这样的文件或目录 (他们在常规的Ubuntu地方)。
答案 0 :(得分:0)
我试图做同样的事情并没有太多运气。但是,我可以告诉你,你需要运行
./configure --driver=SPIDEV
这可以让你超越你的错误。但是,我在尝试运行make时仍然遇到问题:
[Linking]
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-soname,librf24.so.1 -Ofast -Wall -pthread -o librf24.so.1.1.7 RF24.o spi.o gpio.o compatibility.o interrupt.o
RF24.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [librf24.so.1.1.7] Error 1