Skip to content

Commit 1957eae

Browse files
committed
Update RGB LED definition
Update RGB LED definition for using digitalWrite() command with RGB LED.
1 parent 5823593 commit 1957eae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

variants/deneyapkart1A/pins_arduino.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define EXTERNAL_NUM_INTERRUPTS 16
78
#define NUM_DIGITAL_PINS 40
@@ -11,7 +12,7 @@
1112
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
1213
#define digitalPinHasPWM(p) (p < 34)
1314

14-
static const uint8_t LED_BUILTIN = 13;
15+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+13;
1516
#define BUILTIN_LED LED_BUILTIN
1617
#define LED_BUILTIN LED_BUILTIN
1718
#define RGB_BUILTIN LED_BUILTIN

variants/deneyapkart1Av2/pins_arduino.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x8147
@@ -17,7 +18,7 @@
1718
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1819
#define digitalPinHasPWM(p) (p < 46)
1920

20-
static const uint8_t LED_BUILTIN = 48;
21+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+48;
2122
#define BUILTIN_LED LED_BUILTIN
2223
#define LED_BUILTIN LED_BUILTIN
2324
#define RGB_BUILTIN LED_BUILTIN

variants/deneyapkartg/pins_arduino.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define Pins_Arduino_h
33

44
#include <stdint.h>
5+
#include "soc/soc_caps.h"
56

67
#define USB_VID 0x303A
78
#define USB_PID 0x814A
@@ -17,7 +18,7 @@
1718
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
1819
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
1920

20-
static const uint8_t LED_BUILTIN = 10;
21+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+10;
2122
#define BUILTIN_LED LED_BUILTIN
2223
#define LED_BUILTIN LED_BUILTIN
2324
#define RGB_BUILTIN LED_BUILTIN

0 commit comments

Comments
 (0)