summaryrefslogtreecommitdiffstatshomepage
path: root/examples/hwapi
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hwapi')
-rw-r--r--examples/hwapi/hwconfig_esp8266_esp12.py2
-rw-r--r--examples/hwapi/hwconfig_pyboard.py8
-rw-r--r--examples/hwapi/hwconfig_z_frdm_k64f.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/hwapi/hwconfig_esp8266_esp12.py b/examples/hwapi/hwconfig_esp8266_esp12.py
index 198a652d0a..2e855ee3d3 100644
--- a/examples/hwapi/hwconfig_esp8266_esp12.py
+++ b/examples/hwapi/hwconfig_esp8266_esp12.py
@@ -2,4 +2,4 @@ from machine import Pin, Signal
# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
-LED = Signal(Pin(2, Pin.OUT), invert=True)
+LED = Signal(2, Pin.OUT, invert=True)
diff --git a/examples/hwapi/hwconfig_pyboard.py b/examples/hwapi/hwconfig_pyboard.py
index 4db4324919..fb260033e5 100644
--- a/examples/hwapi/hwconfig_pyboard.py
+++ b/examples/hwapi/hwconfig_pyboard.py
@@ -1,13 +1,13 @@
from machine import Pin, Signal
# Red LED on pin LED_RED also kown as A13
-LED = Signal(Pin('LED_RED', Pin.OUT))
+LED = Signal('LED_RED', Pin.OUT)
# Green LED on pin LED_GREEN also known as A14
-LED2 = Signal(Pin('LED_GREEN', Pin.OUT))
+LED2 = Signal('LED_GREEN', Pin.OUT)
# Yellow LED on pin LED_YELLOW also known as A15
-LED3 = Signal(Pin('LED_YELLOW', Pin.OUT))
+LED3 = Signal('LED_YELLOW', Pin.OUT)
# Blue LED on pin LED_BLUE also known as B4
-LED4 = Signal(Pin('LED_BLUE', Pin.OUT))
+LED4 = Signal('LED_BLUE', Pin.OUT)
diff --git a/examples/hwapi/hwconfig_z_frdm_k64f.py b/examples/hwapi/hwconfig_z_frdm_k64f.py
index 6313e2ddb5..377c638787 100644
--- a/examples/hwapi/hwconfig_z_frdm_k64f.py
+++ b/examples/hwapi/hwconfig_z_frdm_k64f.py
@@ -2,4 +2,4 @@ from machine import Pin, Signal
# Freescale/NXP FRDM-K64F board
# Blue LED on port B, pin 21
-LED = Signal(Pin(("GPIO_1", 21), Pin.OUT))
+LED = Signal(("GPIO_1", 21), Pin.OUT)