Skip to content

Commit dd6d597

Browse files
committed
fix(rgbled): other places for RGB LED naming
1 parent db59126 commit dd6d597

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

variants/atmegazero_esp32s2/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#define USB_PRODUCT "ATMZ-ESP32S2"
1111
#define USB_SERIAL ""
1212

13-
static const uint8_t NEOPIXEL = 40;
13+
static const uint8_t RGB_LED_PIN = 40;
1414
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
15-
static const uint8_t LED_BUILTIN = (NEOPIXEL + SOC_GPIO_PIN_COUNT);
15+
static const uint8_t LED_BUILTIN = (RGB_LED_PIN + SOC_GPIO_PIN_COUNT);
1616
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1717
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1818
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite()

variants/bpi-bit/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static const uint8_t BUZZER = 25;
99
static const uint8_t BUTTON_A = 35;
1010
static const uint8_t BUTTON_B = 27;
1111

12-
// NeoPixel Matrix 5 x 5
12+
// RGB LED Matrix 5 x 5
1313
static const uint8_t RGB_LED = 4;
1414

1515
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino

variants/circuitart_zero_s3/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define LED_BUILTIN 46
1414
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1515

16-
// Neopixel
16+
// RGB LED
1717
#define PIN_RGB_LED 47
1818
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWrite() and digitalWrite() for blinking
1919
#define RGB_BUILTIN (PIN_RGB_LED + SOC_GPIO_PIN_COUNT)

variants/cytron_maker_feather_aiot_s3/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static const uint8_t RGB_BUILTIN = SOC_GPIO_PIN_COUNT + 46; // RGB LED.
1919

2020
#define LED LED_BUILTIN
2121
#define RGB RGB_BUILTIN
22-
#define NEOPIXEL RGB_BUILTIN
22+
#define RGB_LED_PIN RGB_BUILTIN
2323
#define RGB_BRIGHTNESS 65
2424

2525
#define VP_EN 11 // V Peripheral Enable.

variants/department_of_alchemy_minimain_esp32s2/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define LED_BUILTIN 13
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1616

17-
// Neopixel
17+
// RGB LED
1818
#define PIN_RGB_LED 33
1919
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbledWritee() for blinking
2020
#define RGB_BUILTIN (PIN_RGB_LED + SOC_GPIO_PIN_COUNT)

variants/department_of_alchemy_minimain_esp32s2/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C" {
3030
// Initialize variant/board, called before setup()
3131
void initVariant(void) {
3232
// This board has a power control pin, and we must set it to output and high
33-
// in order to enable the NeoPixels.
33+
// in order to enable the RGB LEDs.
3434
pinMode(RGBLED_POWER, OUTPUT);
3535
digitalWrite(RGBLED_POWER, HIGH);
3636
}

variants/gpy/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define LTE_WAKE 27 // GPIO27 - Sequans modem wake-up interrupt
1616
#define LTE_BAUD 921600
1717

18-
// Neopixel
18+
// RGB LED
1919
#define PIN_RGB_LED 0 // ->2812 RGB !!!
2020
static const uint8_t LED_BUILTIN = PIN_RGB_LED + SOC_GPIO_PIN_COUNT;
2121
#define BUILTIN_LED LED_BUILTIN // backward compatibility

variants/lopy/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define LORA_IO1 LORA_IRQ // tied by diode to IO0
1616
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
1717

18-
// Neopixel
18+
// RGB LED
1919
#define PIN_RGB_LED 0 // ->2812 RGB !!!
2020
static const uint8_t LED_BUILTIN = PIN_RGB_LED + SOC_GPIO_PIN_COUNT;
2121
#define BUILTIN_LED LED_BUILTIN // backward compatibility

variants/lopy4/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
1616
#define LORA_RST NOT_A_PIN
1717

18-
// Neopixel
18+
// RGB LED
1919
#define PIN_RGB_LED 0 // ->2812 RGB !!!
2020
static const uint8_t LED_BUILTIN = PIN_RGB_LED + SOC_GPIO_PIN_COUNT;
2121
#define BUILTIN_LED LED_BUILTIN // backward compatibility

variants/wipy3/pins_arduino.h

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

7-
// Neopixel
7+
// RGB LED
88
#define PIN_RGB_LED 0 // ->2812 RGB !!!
99
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
1010
static const uint8_t LED_BUILTIN = (PIN_RGB_LED + SOC_GPIO_PIN_COUNT);

0 commit comments

Comments
 (0)