aboutsummaryrefslogtreecommitdiff
path: root/variants/gemma
diff options
context:
space:
mode:
Diffstat (limited to 'variants/gemma')
-rw-r--r--variants/gemma/pins_arduino.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/variants/gemma/pins_arduino.h b/variants/gemma/pins_arduino.h
index 3150b6a..b6aed39 100644
--- a/variants/gemma/pins_arduino.h
+++ b/variants/gemma/pins_arduino.h
@@ -42,7 +42,9 @@
// GND 4| |5 PB0 (D 0) pwm0
// +----+
-#define LED_BUILTIN 1
+#define NUM_DIGITAL_PINS 3
+#define NUM_ANALOG_INPUTS 1
+#define LED_BUILTIN 1
static const uint8_t A0 = 6;
static const uint8_t A1 = 7;
@@ -54,6 +56,8 @@ static const uint8_t A3 = 9;
#define digitalPinToPCMSK(p) ( ((p) <= 4) ? (&PCMSK) : ((uint8_t *)0) )
#define digitalPinToPCMSKbit(p) ( (p) )
+#define digitalPinToInterrupt(p) ((p) == 2 ? 0 : NOT_AN_INTERRUPT)
+
#define analogPinToChannel(p) ( (p) < 6 ? (p) : (p) - 6 )
#define TCCR1A GTCCR