harlequin-tech / rf24HQ

An Arduino library for the Nordic nRF24L01+ RF transceiver.
Other
26 stars 7 forks source link

None of examples works. #6

Open sergeyjsg opened 10 years ago

sergeyjsg commented 10 years ago

include

include

rf24 rf(8,9,100,RF24_MAX_SIZE);

void setup() { rf.begin(); rf.setRxAddr(1, "addr1"); rf.setTxAddr("addr2"); }

void loop() { char data[RF24_MAX_SIZE] = "Hello world"; rf.send(data, sizeof(data)); }

C:\Program Files (x86)\Arduino\libraries\rf24HQ\rfstream.cpp: In member function 'void RFStream::begin(rf24, Print)': C:\Program Files (x86)\Arduino\libraries\rf24HQ\rfstream.cpp:77: error: invalid conversion from 'Print' to 'Stream' C:\Program Files (x86)\Arduino\libraries\rf24HQ\rfstream.cpp:77: error: initializing argument 1 of 'void RFDebug::begin(Stream*)' C:\Program Files (x86)\Arduino\libraries\rf24HQ\rfstream.cpp: In member function 'virtual size_t RFStream::write(uint8_t)': C:\Program Files (x86)\Arduino\libraries\rf24HQ\rfstream.cpp:247: warning: comparison between signed and unsigned integer expressions

harlequin-tech commented 10 years ago

Ah yes, they have not been updated in a while.

I'll find some time to check and update them and add support for the latest Arduino IDE.

sergeyjsg commented 10 years ago

Thanks!