From 01b3815f27dc21fcad35ad5fd6afb57286f31a00 Mon Sep 17 00:00:00 2001 From: Mateus Demboski Date: Mon, 20 Jun 2022 20:33:20 -0300 Subject: [PATCH] Map LOLIN C3 mini board pins (#3587) --- esphome/components/esp32/boards.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/esphome/components/esp32/boards.py b/esphome/components/esp32/boards.py index 56fd4932b4..f14aeefea2 100644 --- a/esphome/components/esp32/boards.py +++ b/esphome/components/esp32/boards.py @@ -521,6 +521,33 @@ ESP32_BOARD_PINS = { }, "lolin32": {"LED": 5}, "lolin32_lite": {"LED": 22}, + "lolin_c3_mini": { + "TX": 21, + "RX": 20, + "SDA": 8, + "SCL": 10, + "SS": 5, + "MOSI": 4, + "MISO": 3, + "SCK": 2, + "A0": 0, + "A1": 1, + "A2": 2, + "A3": 3, + "A4": 4, + "A5": 5, + "D0": 1, + "D1": 10, + "D2": 8, + "D3": 7, + "D4": 6, + "D5": 2, + "D6": 3, + "D7": 4, + "D8": 5, + "LED": 7, + "BUTTON": 9, + }, "lolin_d32": {"LED": 5, "_VBAT": 35}, "lolin_d32_pro": {"LED": 5, "_VBAT": 35}, "lopy": { @@ -1026,6 +1053,7 @@ BOARD_TO_VARIANT = { "labplus_mpython": VARIANT_ESP32, "lolin32_lite": VARIANT_ESP32, "lolin32": VARIANT_ESP32, + "lolin_c3_mini": VARIANT_ESP32C3, "lolin_d32_pro": VARIANT_ESP32, "lolin_d32": VARIANT_ESP32, "lopy4": VARIANT_ESP32,