1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-13 23:48:28 +03:00

Added pinToInterrupt() variant macro (Paul Stoffregen)

This commit is contained in:
Cristian Maglie
2013-09-28 21:11:33 +02:00
parent 5284c3a3e6
commit 35d477297d
5 changed files with 13 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ extern "C"{
// Number of pins defined in PinDescription array
#define PINS_COUNT (79u)
#define NUM_DIGITAL_PINS (53u)
#define NUM_ANALOG_INPUTS (12u)
// Interrupts
#define digitalPinToInterrupt(p) ((p) < NUM_DIGITAL_PINS ? (p) : -1)
// LEDs
#define PIN_LED_13 (13u)