Update T114 LED definitions to include only one simple controllable LED and two NEOPIXELS. (#4710)

pull/4742/head
jhps 2024-09-16 17:11:55 -07:00 zatwierdzone przez GitHub
rodzic b3343303a9
commit 1e665d5181
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 11 dodań i 20 usunięć

Wyświetl plik

@ -32,13 +32,7 @@ const uint32_t g_ADigitalPinMap[] = {
void initVariant() void initVariant()
{ {
// LED1 & LED2 // LED1
pinMode(PIN_LED1, OUTPUT); pinMode(PIN_LED1, OUTPUT);
ledOff(PIN_LED1); ledOff(PIN_LED1);
pinMode(PIN_LED2, OUTPUT);
ledOff(PIN_LED2);
pinMode(PIN_LED3, OUTPUT);
ledOff(PIN_LED3);
} }

Wyświetl plik

@ -67,20 +67,17 @@ extern "C" {
#define NUM_ANALOG_OUTPUTS (0) #define NUM_ANALOG_OUTPUTS (0)
// LEDs // LEDs
#define PIN_LED1 (32 + 3) // 13 red (confirmed on 1.0 board) #define PIN_LED1 (32 + 3) // green (confirmed on 1.0 board)
// Unused(by firmware) LEDs: #define LED_BLUE PIN_LED1 // fake for bluefruit library
#define PIN_LED2 (1 + 1) // 14 blue #define LED_GREEN PIN_LED1
#define PIN_LED3 (1 + 11) // 15 green #define LED_BUILTIN LED_GREEN
#define LED_RED PIN_LED3
#define LED_BLUE PIN_LED1
#define LED_GREEN PIN_LED2
#define LED_BUILTIN LED_BLUE
#define LED_CONN PIN_GREEN
#define LED_STATE_ON 0 // State when LED is lit #define LED_STATE_ON 0 // State when LED is lit
#define HAS_NEOPIXEL // Enable the use of neopixels
#define NEOPIXEL_COUNT 2 // How many neopixels are connected
#define NEOPIXEL_DATA 14 // gpio pin used to send data to the neopixels
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
/* /*
* Buttons * Buttons
*/ */