File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 88
88
89
89
#elif defined(__AVR_ATmega32U4__) // Arduino Leonardo, YUN
90
90
91
+ // #define RFM_IRQ 7 // PE6, INT4, Digital7 - Adafruit Feather M0 RFM96
91
92
#define RFM_IRQ 2 // PD1, pin 19, INT1, Digital2
92
93
#define SS_DDR DDRB
93
94
#define SS_PORT PORTB
94
- #define SS_BIT 6 // Dig10, PB6
95
+ #define SS_BIT 6 // PB6, pin 30, Digital10
95
96
96
97
#define SPI_SS 10 // PB6, pin 30, Digital10
97
98
#define SPI_MISO 14 // PB3, pin 11, Digital14
@@ -294,7 +295,11 @@ uint16_t rf12_control(uint16_t cmd) {
294
295
bitClear (PCICR, PCIE2);
295
296
#endif
296
297
#else
297
- bitClear (EIMSK, INT1);
298
+ #if defined(__AVR_ATmega32U4__) // Arduino Leonardo, YUN
299
+ bitClear (EIMSK, INT1);
300
+ #else
301
+ bitClear (EIMSK, INT0);
302
+ #endif
298
303
#endif
299
304
uint16_t r = rf12_xferSlow (cmd);
300
305
#if PINCHG_IRQ
@@ -306,7 +311,11 @@ uint16_t rf12_control(uint16_t cmd) {
306
311
bitSet (PCICR, PCIE2);
307
312
#endif
308
313
#else
309
- bitSet (EIMSK, INT1);
314
+ #if defined(__AVR_ATmega32U4__) // Arduino Leonardo, YUN
315
+ bitSet (EIMSK, INT1);
316
+ #else
317
+ bitSet (EIMSK, INT0);
318
+ #endif
310
319
#endif
311
320
#else
312
321
// ATtiny
You can’t perform that action at this time.
0 commit comments