Commit 5feeba88 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

examples/hwapi/hwconfig*: Use inline Signal() args where possible.

parent 1d8c3f4c
......@@ -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)
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)
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment