add ledOff ledOn ledToggle function
This commit is contained in:
1 parent
d86127990a
commit
0ebf2d4dca
4 files changed
+26
-4
No files matched your search
@@ -78,9 +78,9 @@ void initVariant()
|
||||
|
||||
// LED1 & LED2
|
||||
pinMode(PIN_LED1, OUTPUT);
|
||||
digitalWrite(PIN_LED1, LOW);
|
||||
ledOff(PIN_LED1);
|
||||
|
||||
pinMode(PIN_LED2, OUTPUT);
|
||||
digitalWrite(PIN_LED2, LOW);
|
||||
ledOff(PIN_LED2);
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ extern "C"
|
||||
// LEDs
|
||||
#define PIN_LED1 (17)
|
||||
#define PIN_LED2 (19)
|
||||
//#define PIN_LED3 (8)
|
||||
//#define PIN_LED4 (9)
|
||||
|
||||
#define LED_BUILTIN PIN_LED1
|
||||
#define LED_CONN PIN_LED2
|
||||
#define LED_STATE_ON 1
|
||||
|
||||
// Buttons
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user