Skip to content

Commit

Permalink
ATtiny85 PJON_IO_PIN_TO_BIT bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Feb 16, 2018
1 parent 3176685 commit 6f55069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/ARDUINO/PJON_IO.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ inform the reader of their definition as macros in the global scope.

#if defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
#define PJON_IO_PIN_TO_PORT_REG(P) &PORTB
#define PJON_IO_PIN_TO_DDR_REG(P) &DDRB
#define PJON_IO_PIN_TO_PIN_REG(P) &PINB
#define PJON_IO_PIN_TO_DDR_REG(P) &DDRB
#define PJON_IO_PIN_TO_PIN_REG(P) &PINB
#ifndef PJON_IO_PIN_TO_BIT
#define PJON_IO_PIN_TO_BIT(P) P - 6
#define PJON_IO_PIN_TO_BIT(P) P
#endif
#endif

Expand Down

0 comments on commit 6f55069

Please sign in to comment.