GithubHelp home page GithubHelp logo

rfm69-library-avr's People

Contributors

aliznayem avatar trentn avatar twilco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rfm69-library-avr's Issues

Need help to port to ATmega328PB

Hi, I need help to make it work for ATmega328PB in Atmel Studio, pure C code.
I get alots of error and don't really know how to solve them, thanks!
image

image

Im using PB1 as Interrupt, PB2 SS, PB3 Mosi, PB4 Miso and PB5 Sck.

Testing in Arduino IDE

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:

  • Change *.c files to *.cpp
  • also renamed to avoid conflicts.
  • testing a basic sketch just including the libraries.

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.

Ported to Attiny84

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.

Bug in encryption setup

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.