Skip to content

Commit bf2eac2

Browse files
committed
Add support for ATmega1281
PCINT0..7 are on PB0..7 -> PCINT8 on PE0 not supported <- PCINT9..15 are on PJ0..6 PCINT16..32 are on PK0..7
1 parent 08b30f4 commit bf2eac2

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=NeoSWSerial
2-
version=3.0.2
2+
version=3.0.3
33
author=SlashDevin
44
maintainer=SlashDevin
55
sentence=An efficient replacement for SoftwareSerial at baud rates 9600, 19200 and 38400.

src/NeoSWSerial.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ void NeoSWSerial::rxChar( uint8_t c )
476476
PCINT_ISR(1, PINJ);
477477
PCINT_ISR(2, PINK);
478478

479+
#elif defined(__AVR_ATmega1281__)
480+
481+
PCINT_ISR(0, PINB);
482+
// PCINT8 on PE0 not supported. Other 7 are on PJ0..6
483+
PCINT_ISR(1, PINJ);
484+
PCINT_ISR(2, PINK);
485+
479486
#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)
480487

481488
PCINT_ISR(0, PINA);

0 commit comments

Comments
 (0)