Skip to content

Commit

Permalink
ATTiny 861 support per #180
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Mar 23, 2016
1 parent 9708f72 commit 970309d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,13 @@ void RF24::setRetries(uint8_t delay, uint8_t count)
# define DO 15 // PB6
# define USCK 16 // PB7
# define SS 13 // PB4
#elif defined(__AVR_ATtiny861__)
// these depend on the core used (check pins_arduino.h)
// tested with google-code core
# define DI 9 // PB0
# define DO 8 // PB1
# define USCK 7 // PB2
# define SS 6 // PB3
#endif

#if defined(RF24_TINY)
Expand Down
3 changes: 1 addition & 2 deletions RF24_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
#include "utility/includes.h"

//ATTiny
#elif defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny2313__) || defined(__AVR_ATtiny4313__)

#elif defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny2313__) || defined(__AVR_ATtiny4313__) || defined(__AVR_ATtiny861__)
#define RF24_TINY
#include "utility/ATTiny/RF24_arch_config.h"

Expand Down

0 comments on commit 970309d

Please sign in to comment.