LowPowerLab / RFM69

RFM69 library for RFM69W, RFM69HW, RFM69CW, RFM69HCW (semtech SX1231, SX1231H)
GNU General Public License v3.0
778 stars 381 forks source link

Support for TinyAVR Series-1 #145

Closed Pjeran closed 4 years ago

Pjeran commented 4 years ago

Been playing around with the Series-1 uC using the TinyMegaCore from Spencer Konde

https://github.com/SpenceKonde/megaTinyCore

Pretty impressive next generation of chips with full SPI support and up to 32Kb of program memory. With a couple of small changes I was able to get the library working, but am not very versed in pull requests and making changes in a repository.

In RFM69.h adding: ` #elif defined(__AVR_ATtinyxy7__) // MegaTinyCore AVR Series-1

define RF69_PLATFORM RF69_PLATFORM_ARDUINO

else

error Platform not defined!

endif

endif

elif defined(__AVR_ATtinyxy6__) // MegaTinyCore AVR Series-1

define RF69_PLATFORM RF69_PLATFORM_ARDUINO

else

error Platform not defined!

endif

endif`

and properly defining CS for the SPI pins selected and a pin for the IRQ everything works well.

LowPowerLab commented 4 years ago

Added.