Permalink
Browse files

ATtiny85 PJON_IO_PIN_TO_BIT bugfix

  • Loading branch information...
gioblu committed Feb 16, 2018
1 parent 3176685 commit 6f55069fbc8fb3b03f988e4ac1410e880b1fdaad
Showing with 3 additions and 3 deletions.
  1. +3 −3 interfaces/ARDUINO/PJON_IO.h
@@ -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

0 comments on commit 6f55069

Please sign in to comment.