From a5bed53738e8aedc3b4be39dc8f9dface6b0abbb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 29 Jan 2017 19:09:33 +0300 Subject: [PATCH] examples/hwapi: Consistently use Signal class to define LEDs. --- examples/hwapi/hwconfig_dragonboard410c.py | 4 ++-- examples/hwapi/hwconfig_z_frdm_k64f.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/hwapi/hwconfig_dragonboard410c.py b/examples/hwapi/hwconfig_dragonboard410c.py index 8061d7b743..2db21165d2 100644 --- a/examples/hwapi/hwconfig_dragonboard410c.py +++ b/examples/hwapi/hwconfig_dragonboard410c.py @@ -13,10 +13,10 @@ from machine import Pin # echo -n "gpio_keys" >/sys/class/input/input1/device/driver/unbind # User LED 1 on gpio21 -LED = Pin(21, Pin.OUT) +LED = Signal(Pin(21, Pin.OUT)) # User LED 2 on gpio120 -LED2 = Pin(120, Pin.OUT) +LED2 = Signal(Pin(120, Pin.OUT)) # Button S3 on gpio107 BUTTON = Pin(107, Pin.IN) diff --git a/examples/hwapi/hwconfig_z_frdm_k64f.py b/examples/hwapi/hwconfig_z_frdm_k64f.py index c45e3e7567..583e8d7aa4 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 # Freescale/NXP FRDM-K64F board # Blue LED on port B, pin 21 -LED = Pin(("GPIO_1", 21), Pin.OUT) +LED = Signal(Pin(("GPIO_1", 21), Pin.OUT))