summaryrefslogtreecommitdiff
path: root/examples/hwapi/hwconfig_esp8266_esp12.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-01 20:05:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-29 18:57:37 +0300
commit297af6036ef28a8e1558b5ca0a2e6f689a7af474 (patch)
treed2b0f4f4567c860b61fe3bc408b332c7df0d2476 /examples/hwapi/hwconfig_esp8266_esp12.py
parent287180a0a8efc46c5b788236504880ebae96b5d7 (diff)
examples/hwapi: Use Signal for inverted LED on ESP-12.
Diffstat (limited to 'examples/hwapi/hwconfig_esp8266_esp12.py')
-rw-r--r--examples/hwapi/hwconfig_esp8266_esp12.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hwapi/hwconfig_esp8266_esp12.py b/examples/hwapi/hwconfig_esp8266_esp12.py
index e8cf2d12e..fb6d5fe90 100644
--- a/examples/hwapi/hwconfig_esp8266_esp12.py
+++ b/examples/hwapi/hwconfig_esp8266_esp12.py
@@ -1,5 +1,5 @@
-from machine import Pin
+from machine import Pin, Signal
# ESP12 module as used by many boards
-# Blue LED on pin 2
-LED = Pin(2, Pin.OUT)
+# Blue LED on pin 2, active low (inverted)
+LED = Signal(Pin(2, Pin.OUT), inverted=True)