File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
#define Pins_Arduino_h
3
3
4
4
#include <stdint.h>
5
+ #include "soc/soc_caps.h"
5
6
6
7
#define EXTERNAL_NUM_INTERRUPTS 16
7
8
#define NUM_DIGITAL_PINS 40
11
12
#define digitalPinToInterrupt (p ) (((p)<40)?(p):-1)
12
13
#define digitalPinHasPWM (p ) (p < 34)
13
14
14
- static const uint8_t LED_BUILTIN = 13 ;
15
+ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 13 ;
15
16
#define BUILTIN_LED LED_BUILTIN
16
17
#define LED_BUILTIN LED_BUILTIN
17
18
#define RGB_BUILTIN LED_BUILTIN
Original file line number Diff line number Diff line change 2
2
#define Pins_Arduino_h
3
3
4
4
#include <stdint.h>
5
+ #include "soc/soc_caps.h"
5
6
6
7
#define USB_VID 0x303A
7
8
#define USB_PID 0x8147
17
18
#define digitalPinToInterrupt (p ) (((p)<48)?(p):-1)
18
19
#define digitalPinHasPWM (p ) (p < 46)
19
20
20
- static const uint8_t LED_BUILTIN = 48 ;
21
+ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48 ;
21
22
#define BUILTIN_LED LED_BUILTIN
22
23
#define LED_BUILTIN LED_BUILTIN
23
24
#define RGB_BUILTIN LED_BUILTIN
Original file line number Diff line number Diff line change 2
2
#define Pins_Arduino_h
3
3
4
4
#include <stdint.h>
5
+ #include "soc/soc_caps.h"
5
6
6
7
#define USB_VID 0x303A
7
8
#define USB_PID 0x814A
17
18
#define digitalPinToInterrupt (p ) (((p)<NUM_DIGITAL_PINS)?(p):-1)
18
19
#define digitalPinHasPWM (p ) (p < EXTERNAL_NUM_INTERRUPTS)
19
20
20
- static const uint8_t LED_BUILTIN = 10 ;
21
+ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 10 ;
21
22
#define BUILTIN_LED LED_BUILTIN
22
23
#define LED_BUILTIN LED_BUILTIN
23
24
#define RGB_BUILTIN LED_BUILTIN
You can’t perform that action at this time.
0 commit comments