-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
The pins_arduino.h in Moteino/MEGA/Core/Moteino.zip
can be improved:
- There is no definition for digitalPinToInterrupt(p). This triggers a compilation error. I suggest
define digitalPinToInterrupt(p) ((p) == 10? 0: (p) == 11? 1: (p) == 2? 2: NOT_AN_INTERRUPT)
- NUM_DIGITAL_PINS should be defined as 32 (there are 32 digital pins, not 31)
- The pinout comment misspells OC0B as 0C0B
- The LED_BUILTIN macro misses. How about
define LED_BUILTIN 15
Easy fixes throughout. Here a diff -e of mine with the existing
72a
define digitalPinToInterrupt(p) ((p) == 10? 0: (p) == 11? 1: (p) == 2? 2: NOT_AN_INTERRUPT)
.
58a
define LED_BUILTIN 15
.
41c
define NUM_DIGITAL_PINS 32
.
17c
// PCINT12/OC0B/SS (D4 ) PB4 5|~ |36 PA4 (A4 / D28)/PCINT4
.
mfalkvidd
Metadata
Metadata
Assignees
Labels
No labels