File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1556,16 +1556,21 @@ void RF24::setRetries(uint8_t delay, uint8_t count)
15561556# define DO 5 // PA5
15571557# define USCK 6 // PA4
15581558# define SS 3 // PA7
1559+ #elif defined(__AVR_ATtiny2313__) || defined(__AVR_ATtiny4313__)
1560+ // these depend on the core used (check pins_arduino.h)
1561+ // tested with google-code core
1562+ # define DI 14 // PB5
1563+ # define DO 15 // PB6
1564+ # define USCK 16 // PB7
1565+ # define SS 13 // PB4
15591566#endif
15601567
15611568#if defined(RF24_TINY)
15621569
15631570void SPIClass::begin () {
15641571
1565- digitalWrite (SS, HIGH);
15661572 pinMode (USCK, OUTPUT);
15671573 pinMode (DO, OUTPUT);
1568- pinMode (SS, OUTPUT);
15691574 pinMode (DI, INPUT);
15701575 USICR = _BV (USIWM0);
15711576
Original file line number Diff line number Diff line change 3838 #include "utility/includes.h"
3939
4040//ATTiny
41- #elif defined(__AVR_ATtiny25__ ) || defined(__AVR_ATtiny45__ ) || defined(__AVR_ATtiny85__ ) || defined(__AVR_ATtiny24__ ) || defined(__AVR_ATtiny44__ ) || defined(__AVR_ATtiny84__ )
41+ #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__ )
4242
4343 #define RF24_TINY
4444 #include "utility/ATTiny/RF24_arch_config.h"
You can’t perform that action at this time.
0 commit comments