Skip to content
Snippets Groups Projects
Commit 00d6f99c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

examples/hwapi: Add hwconfig for console tracing of LED operations.

parent e81a5353
No related branches found
No related tags found
No related merge requests found
# 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment