Skip to content

Commit fb243ce

Browse files
committed
analog pin mapping fixed
requires Arduino core for ESP8266 V2.2
1 parent cefeaa3 commit fb243ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Boards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
685685
#define IS_PIN_INTERRUPT(p) (((p) >= 0 && (p) <= 5) || ((p) >= 12 && (p) <= 15))
686686
#define IS_PIN_SERIAL(p) ((p) == 1 || (p) == 3)
687687
#define PIN_TO_DIGITAL(p) (p)
688-
#define PIN_TO_ANALOG(p) (p)
688+
#define PIN_TO_ANALOG(p) ((p) - 17)
689689
#define PIN_TO_PWM(p) PIN_TO_DIGITAL(p)
690690
#define PIN_TO_SERVO(p) (p)
691691

0 commit comments

Comments
 (0)