有可用的CC1101无线模块的库文件么?
最近买了些CC1101,冲着最大的好处是能远距离通讯,但是SPI使用教程代码都是51之类的,没有Arduino。搜索很久找到一个Arduino的库函数panstamp,但是放到库函目录下编译出错。
panstamp的网址
http://labalec.fr/erwan/?p=497
编译出错:
构建选项已变更,全部重新构建
CC1101_Send.ino: In function 'void setup()':
CC1101_Send:48: error: 'CFREQ_433' was not declared in this scope
In file included from CC1101_Send.ino:2:0:
E:\Development\Arduino\Arduino_lib\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
...
...
...
^
CC1101_Send:75: error: within this context
'CFREQ_433' was not declared in this scope
看原文章跟帖,说是没到库目录下,但是我明明已经放库目录下了
而且CFREQ_433的定义在cc1101.h找不到。
如果真没放对库目录,直接CC1101 cc1101;这句就该报错了。
有谁知道什么回事么?或有别的CC1101可用的库,谢谢。
页:
[1]