Skip to content

Commit 4a0b18e

Browse files
committed
fic c2 pins_arduino.h
1 parent 3b6558a commit 4a0b18e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

variants/esp32c2/pins_arduino.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44
#include <stdint.h>
55
#include "soc/soc_caps.h"
66

7-
#define EXTERNAL_NUM_INTERRUPTS 14
8-
#define NUM_DIGITAL_PINS 14
9-
#define NUM_ANALOG_INPUTS 5
107

118
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT-13;
129
#define BUILTIN_LED LED_BUILTIN // backward compatibility
13-
#define LED_BUILTIN LED_BUILTIN
14-
15-
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
16-
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
17-
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
10+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1811

1912
static const uint8_t TX = 20;
2013
static const uint8_t RX = 19;

0 commit comments

Comments
 (0)