Skip to content

Commit

Permalink
Add support for ATmega1281
Browse files Browse the repository at this point in the history
PCINT0..7 are on PB0..7
-> PCINT8 on PE0 not supported  <-
PCINT9..15 are on PJ0..6
PCINT16..32 are on PK0..7
  • Loading branch information
SlashDevin committed Jun 8, 2017
1 parent 08b30f4 commit bf2eac2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NeoSWSerial
version=3.0.2
version=3.0.3
author=SlashDevin
maintainer=SlashDevin
sentence=An efficient replacement for SoftwareSerial at baud rates 9600, 19200 and 38400.
Expand Down
7 changes: 7 additions & 0 deletions src/NeoSWSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,13 @@ void NeoSWSerial::rxChar( uint8_t c )
PCINT_ISR(1, PINJ);
PCINT_ISR(2, PINK);

#elif defined(__AVR_ATmega1281__)

PCINT_ISR(0, PINB);
// PCINT8 on PE0 not supported. Other 7 are on PJ0..6
PCINT_ISR(1, PINJ);
PCINT_ISR(2, PINK);

#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)

PCINT_ISR(0, PINA);
Expand Down

0 comments on commit bf2eac2

Please sign in to comment.