diff --git a/examples/hwapi/hwconfig_esp8266_esp12.py b/examples/hwapi/hwconfig_esp8266_esp12.py index 198a652d0a82550a03a73e6e95157890bb5e16f9..2e855ee3d3813f0be21b50f154e9386c6903154b 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 4db4324919b113b4815afd36622fceda8400f1b6..fb260033e567b24bc164e72782a0183c46cb65f9 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 6313e2ddb58185090c3e94642d3136192621d64f..377c6387877caf392f4390369457a64f54c0bfe4 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)