Skip to content

Commit a5bed53

Browse files
committed
examples/hwapi: Consistently use Signal class to define LEDs.
1 parent 297af60 commit a5bed53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/hwapi/hwconfig_dragonboard410c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# echo -n "gpio_keys" >/sys/class/input/input1/device/driver/unbind
1414

1515
# User LED 1 on gpio21
16-
LED = Pin(21, Pin.OUT)
16+
LED = Signal(Pin(21, Pin.OUT))
1717

1818
# User LED 2 on gpio120
19-
LED2 = Pin(120, Pin.OUT)
19+
LED2 = Signal(Pin(120, Pin.OUT))
2020

2121
# Button S3 on gpio107
2222
BUTTON = Pin(107, Pin.IN)

examples/hwapi/hwconfig_z_frdm_k64f.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# Freescale/NXP FRDM-K64F board
44
# Blue LED on port B, pin 21
5-
LED = Pin(("GPIO_1", 21), Pin.OUT)
5+
LED = Signal(Pin(("GPIO_1", 21), Pin.OUT))

0 commit comments

Comments
 (0)