Unverified Commit 37c81dc2 authored by surt's avatar surt Committed by GitHub

Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636)

Co-authored-by: default avatarRodrigo Garcia <rodrigo.garcia@espressif.com>
parent 7818fd33
......@@ -11,6 +11,10 @@
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
static const uint8_t LED_BUILTIN = 12;
#define BUILTIN_LED LED_BUILTIN
static const uint8_t LED_BUILTIN_AUX = 13;
static const uint8_t TX = 21;
static const uint8_t RX = 20;
......
#include "Arduino.h"
extern "C" void initVariant(void){
// Stop LEDs floating
pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW);
pinMode(LED_BUILTIN_AUX, OUTPUT); digitalWrite(LED_BUILTIN_AUX, LOW);
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment