1 parent 287180a commit 297af60Copy full SHA for 297af60
1 file changed
examples/hwapi/hwconfig_esp8266_esp12.py
@@ -1,5 +1,5 @@
1
-from machine import Pin
+from machine import Pin, Signal
2
3
# ESP12 module as used by many boards
4
-# Blue LED on pin 2
5
-LED = Pin(2, Pin.OUT)
+# Blue LED on pin 2, active low (inverted)
+LED = Signal(Pin(2, Pin.OUT), inverted=True)
0 commit comments