summaryrefslogtreecommitdiffstatshomepage
path: root/examples/hwapi/hwconfig_console.py
blob: 4b0b0d79bd4b4be64bff8ee00c584cfbdef1f35a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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 = "LED(%d):" % id

    def value(self, v):
        print(self.id, v)


LED = LEDClass(1)
LED2 = LEDClass(12)