Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
00d6f99c
Commit
00d6f99c
authored
Nov 18, 2016
by
Paul Sokolovsky
Browse files
examples/hwapi: Add hwconfig for console tracing of LED operations.
parent
e81a5353
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/hwapi/hwconfig_console.py
0 → 100644
View file @
00d6f99c
# This is hwconfig for "emulation" for cases when there's no real hardware.
# It just prints information to console.
class
LEDClass
:
def
__init__
(
self
,
id
):
self
.
id
=
id
def
value
(
self
,
v
):
print
(
"LED(%d):"
%
self
.
id
,
v
)
LED
=
LEDClass
(
1
)
LED2
=
LEDClass
(
12
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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