1313from ._base import BoardProfile
1414
1515
16- # ── ADC attenuation helper ─────────────────────────────────────
16+ # --- ADC attenuation helper -------------------------------------
1717# Imported lazily so the profiles module can be parsed on the host
1818# (e.g. for IDE support) without requiring machine to be available.
1919def _atten ():
@@ -24,9 +24,9 @@ def _atten():
2424 return None
2525
2626
27- # ──────────────────────────────────────────────────────────────
27+ # --------------------------------------------------------------
2828# ESP32 DevKit V1 / WROOM-32
29- # ──────────────────────────────────────────────────────────────
29+ # --------------------------------------------------------------
3030class ESP32DevKitV1 (BoardProfile ):
3131 """
3232 Espressif ESP32 DevKit V1 (WROOM-32).
@@ -50,9 +50,9 @@ class ESP32DevKitV1(BoardProfile):
5050 ADC2_PINS = [0 , 2 , 4 , 12 , 13 , 14 , 15 , 25 , 26 , 27 ]
5151
5252
53- # ──────────────────────────────────────────────────────────────
53+ # --------------------------------------------------------------
5454# ESP32-S3 DevKit-C
55- # ──────────────────────────────────────────────────────────────
55+ # --------------------------------------------------------------
5656class ESP32S3DevKit (BoardProfile ):
5757 """
5858 Espressif ESP32-S3 DevKitC-1.
@@ -76,9 +76,9 @@ class ESP32S3DevKit(BoardProfile):
7676 ADC2_PINS = [11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 ]
7777
7878
79- # ──────────────────────────────────────────────────────────────
79+ # --------------------------------------------------------------
8080# ESP32-C3 Mini / SuperMini
81- # ──────────────────────────────────────────────────────────────
81+ # --------------------------------------------------------------
8282class ESP32C3Mini (BoardProfile ):
8383 """
8484 ESP32-C3 Mini / SuperMini.
@@ -102,9 +102,9 @@ class ESP32C3Mini(BoardProfile):
102102 ADC2_PINS = [] # C3 has no ADC2
103103
104104
105- # ──────────────────────────────────────────────────────────────
105+ # --------------------------------------------------------------
106106# M5Stack ATOM Lite / Matrix
107- # ──────────────────────────────────────────────────────────────
107+ # --------------------------------------------------------------
108108class M5StackAtom (BoardProfile ):
109109 """
110110 M5Stack ATOM Lite / Matrix.
@@ -128,9 +128,9 @@ class M5StackAtom(BoardProfile):
128128 ADC2_PINS = [0 , 2 , 4 , 12 , 13 , 14 , 15 , 25 , 26 , 27 ]
129129
130130
131- # ──────────────────────────────────────────────────────────────
131+ # --------------------------------------------------------------
132132# Wemos D1 Mini32 (ESP32)
133- # ──────────────────────────────────────────────────────────────
133+ # --------------------------------------------------------------
134134class WemosD1Mini32 (BoardProfile ):
135135 """Wemos / LOLIN D1 Mini32."""
136136 NAME = "wemos_d1_mini32"
@@ -149,9 +149,9 @@ class WemosD1Mini32(BoardProfile):
149149 ADC2_PINS = [0 , 2 , 4 , 12 , 13 , 14 , 15 , 25 , 26 , 27 ]
150150
151151
152- # ──────────────────────────────────────────────────────────────
152+ # --------------------------------------------------------------
153153# NodeMCU V3 Lolin (ESP8266)
154- # ──────────────────────────────────────────────────────────────
154+ # --------------------------------------------------------------
155155class ESP8266LolinV3 (BoardProfile ):
156156 """
157157 NodeMCU V3 Lolin (ESP8266).
@@ -207,9 +207,9 @@ def make_adc(self, gpio_num):
207207 return ADC (0 ) # channel 0 = A0 pin, the sole ADC input on ESP8266
208208
209209
210- # ──────────────────────────────────────────────────────────────
210+ # --------------------------------------------------------------
211211# ESP32 38-Pin NodeMCU (Type-C / Micro-USB combo)
212- # ──────────────────────────────────────────────────────────────
212+ # --------------------------------------------------------------
213213class ESP32_38Pin_NodeMCU (BoardProfile ):
214214 """
215215 ESP32 38-Pin NodeMCU development board (Type-C & Micro-USB combo).
@@ -231,9 +231,9 @@ class ESP32_38Pin_NodeMCU(BoardProfile):
231231
232232 PIN_ALIASES = {
233233 # Built-in LED (active-HIGH on this board)
234- "internal" : 2 ,
235- "led" : 2 ,
236- "builtin_led" : 2 ,
234+ "internal" : 1 ,
235+ "led" : 1 ,
236+ "builtin_led" : 1 ,
237237 # Built-in BOOT button
238238 "button" : 0 ,
239239 # Standard I2C bus
0 commit comments