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
1e9093f8
Commit
1e9093f8
authored
Dec 23, 2016
by
Paul Sokolovsky
Browse files
examples/hwapi/hwconfig_console: Don't alloc memory in value().
parent
13288336
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/hwapi/hwconfig_console.py
View file @
1e9093f8
...
...
@@ -3,10 +3,10 @@
class
LEDClass
:
def
__init__
(
self
,
id
):
self
.
id
=
id
self
.
id
=
"LED(%d):"
%
id
def
value
(
self
,
v
):
print
(
"LED(%d):"
%
self
.
id
,
v
)
print
(
self
.
id
,
v
)
LED
=
LEDClass
(
1
)
...
...
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