aliznayem / rfm69-library-avr Goto Github PK
View Code? Open in Web Editor NEWC Ported RFM69 Library for AVR Microcontrollers
C Ported RFM69 Library for AVR Microcontrollers
if(ACKRequested())
sendACK();
In example gives compilation error.
Error : too few arguments to function 'sendACK'
Hello @nayem-cosmic
I am trying to use your library in the Arduino IDE in the hope to use it with the Attiny84, I did the following:
when I compile I get this errors when compile for atmega328
sketch\src\RFM69-AVR-C\RFM69avr.cpp.o:(.bss.DATA+0x0): multiple definition of `DATA'
sketch\Test_RFM_AVR-C.ino.cpp.o:(.bss.DATA+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ATmega328
I read it can be something related to the millis() function or timer, but I do not really understand that much. I hope you can point in the right direction where to look.
Thank you in advance.
RFM69_c_diff.txt
RFM69_h_diff.txt
Hi,
I have ported it to Attiny84. Initially the receiver which was using the LowPowerLab library wasn't receiving anything. I've have made some changes to your code to make it work.
Apparently there was an off-by-one error. LowPowerLab has changed the library a bit and I updated your code accordingly (only the sending part).
Attached the unified diff.
Encryption is not working. I checked source from LowPowerLab and found one difference:
RFM69.c, void encrypt(const char* key), line 286-287:
else
writeReg(REG_PACKETCONFIG2, (readReg(REG_PACKETCONFIG2) & 0xFE) | 0x00);
must be:
//else - no else, enable or disable on key
writeReg(REG_PACKETCONFIG2, (readReg(REG_PACKETCONFIG2) & 0xFE) | (key?1:0));
...now it's working fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.