Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
297af603
Commit
297af603
authored
Jan 01, 2017
by
Paul Sokolovsky
Browse files
examples/hwapi: Use Signal for inverted LED on ESP-12.
parent
287180a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/hwapi/hwconfig_esp8266_esp12.py
View file @
297af603
from
machine
import
Pin
from
machine
import
Pin
,
Signal
# ESP12 module as used by many boards
# Blue LED on pin 2
LED
=
Pin
(
2
,
Pin
.
OUT
)
# Blue LED on pin 2
, active low (inverted)
LED
=
Signal
(
Pin
(
2
,
Pin
.
OUT
)
,
inverted
=
True
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment