esp8266 uart with irq disabled

This commit is contained in:
MichaelDvP
2020-06-02 14:01:35 +02:00
parent ba08fb65ef
commit 3300f1e757
6 changed files with 42 additions and 37 deletions

View File

@@ -83,10 +83,13 @@ class System {
static constexpr uint8_t LED_GPIO = 2;
static constexpr uint8_t LED_ON = LOW;
#elif defined(ESP32)
// static constexpr uint8_t LED_GPIO = 5; // on Wemos D32
// static constexpr uint8_t LED_ON = LOW;
#ifdef WEMOS_D1_32
static constexpr uint8_t LED_GPIO = 2; // on Wemos D1-32
static constexpr uint8_t LED_ON = HIGH;
#else
static constexpr uint8_t LED_GPIO = 5;
static constexpr uint8_t LED_ON = LOW;
#endif
#else
static constexpr uint8_t LED_GPIO = 0;
static constexpr uint8_t LED_ON = 0;