Skip to content

Commit db59126

Browse files
committed
fix(rgbled): variants - use RGB_LED naming
1 parent 8e37c99 commit db59126

File tree

25 files changed

+56
-56
lines changed

25 files changed

+56
-56
lines changed

variants/Bee_Data_Logger/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ static const uint8_t LDO2 = 34;
6565
static const uint8_t RGB_DATA = 40;
6666
static const uint8_t RGB_PWR = 34;
6767

68-
#define PIN_NEOPIXEL RGB_DATA
68+
#define PIN_RGB_LED RGB_DATA
6969
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
70-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
70+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
7171
#define BUILTIN_LED LED_BUILTIN // backward compatibility
7272
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
7373
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/Bee_Motion_S3/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ static const uint8_t LDO2 = 34;
7373
static const uint8_t RGB_DATA = 40;
7474
static const uint8_t RGB_PWR = 34;
7575

76-
#define PIN_NEOPIXEL RGB_DATA
76+
#define PIN_RGB_LED RGB_DATA
7777
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
78-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
78+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
7979
#define BUILTIN_LED LED_BUILTIN // backward compatibility
8080
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
8181
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/Bee_S3/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ static const uint8_t VBAT_VOLTAGE = 1;
6262
static const uint8_t RGB_DATA = 48;
6363
static const uint8_t RGB_PWR = 34;
6464

65-
#define PIN_NEOPIXEL RGB_DATA
65+
#define PIN_RGB_LED RGB_DATA
6666
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
67-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
67+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
6868
#define BUILTIN_LED LED_BUILTIN // backward compatibility
6969
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
7070
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite

variants/bpi_leaf_s3/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// Some boards have too low voltage on this pin (board design bug)
1414
// Use different pin with 3V and connect with 48
1515
// and change this setup for the chosen pin (for example 38)
16-
#define PIN_NEOPIXEL 48
16+
#define PIN_RGB_LED 48
1717
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
18-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
18+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
2020
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
2121
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/circuitart_zero_s3/pins_arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1515

1616
// Neopixel
17-
#define PIN_NEOPIXEL 47
17+
#define PIN_RGB_LED 47
1818
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite() and digitalWrite() for blinking
19-
#define RGB_BUILTIN (PIN_NEOPIXEL + SOC_GPIO_PIN_COUNT)
19+
#define RGB_BUILTIN (PIN_RGB_LED + SOC_GPIO_PIN_COUNT)
2020
#define RGB_BRIGHTNESS 64
21-
#define NEOPIXEL_NUM 1 // number of neopixels
21+
#define RGBLED_NUM 1 // number of RGB LEDs
2222

2323
static const uint8_t KEY_BUILTIN = 0;
2424

variants/department_of_alchemy_minimain_esp32s2/pins_arduino.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1616

1717
// Neopixel
18-
#define PIN_NEOPIXEL 33
18+
#define PIN_RGB_LED 33
1919
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWritee() for blinking
20-
#define RGB_BUILTIN (PIN_NEOPIXEL + SOC_GPIO_PIN_COUNT)
20+
#define RGB_BUILTIN (PIN_RGB_LED + SOC_GPIO_PIN_COUNT)
2121
#define RGB_BRIGHTNESS 64
2222

23-
#define NEOPIXEL_NUM 1 // number of neopixels
24-
#define NEOPIXEL_POWER 21 // power pin
25-
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
23+
#define RGBLED_NUM 1 // number of RGB LEDs
24+
#define RGBLED_POWER 21 // power pin
25+
#define RGBLED_POWER_ON HIGH // power pin state when on
2626
#define PIN_SERVO 2 // servo pin
2727
#define PIN_ISOLATED_INPUT 40 // optocoupled input
2828

variants/department_of_alchemy_minimain_esp32s2/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131
void initVariant(void) {
3232
// This board has a power control pin, and we must set it to output and high
3333
// in order to enable the NeoPixels.
34-
pinMode(NEOPIXEL_POWER, OUTPUT);
35-
digitalWrite(NEOPIXEL_POWER, HIGH);
34+
pinMode(RGBLED_POWER, OUTPUT);
35+
digitalWrite(RGBLED_POWER, HIGH);
3636
}
3737
}

variants/esp32c3/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include <stdint.h>
55
#include "soc/soc_caps.h"
66

7-
#define PIN_NEOPIXEL 8
7+
#define PIN_RGB_LED 8
88
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
9+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1010
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1111
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1212
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/esp32c6/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include <stdint.h>
55
#include "soc/soc_caps.h"
66

7-
#define PIN_NEOPIXEL 8
7+
#define PIN_RGB_LED 8
88
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
9+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1010
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1111
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1212
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/esp32h2-devkit-lipo/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include <stdint.h>
55
#include "soc/soc_caps.h"
66

7-
#define PIN_NEOPIXEL 8
7+
#define PIN_RGB_LED 8
88
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9-
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL;
9+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1010
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1111
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1212
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

0 commit comments

Comments
 (0)