Commit 00d6f99c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent e81a5353
# 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): = id
def value(self, v):
print("LED(%d):" %, v)
LED = LEDClass(1)
LED2 = LEDClass(12)
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