adafruit / Adafruit_nRF8001

Drivers for Adafruit's nRF8001 Bluetooth Low Energy Breakout
109 stars 53 forks source link

Add support for Atmega644P when used with Bobuino pinout of MightyCore. #24

Open kurt-schaefer opened 6 years ago

kurt-schaefer commented 6 years ago

This is just a single file change to add support for the Atmega644p.
It only modifies hal_acl_tl.cpp for users with either of these defined:

defined(AVR_ATmega644P) || defined(AVR_ATmega644)

So the scope is pretty small. I've only tested this on the pin 6 INT2 version for my board using MightyCore's:

Board: Atmega644 Variant: 644P/644PA Pinout: Bobuino

I can confirm that it works.
Pin 2 INT0 and Pin 3 INT1 are just based on the data sheet, and should also work, but I have not tested them directly.