diff options
Diffstat (limited to 'pybot/drivers/hotplug/led.py')
-rw-r--r-- | pybot/drivers/hotplug/led.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pybot/drivers/hotplug/led.py b/pybot/drivers/hotplug/led.py new file mode 100644 index 0000000..0703d54 --- /dev/null +++ b/pybot/drivers/hotplug/led.py @@ -0,0 +1,19 @@ + +RD_VERSION = 0x00 +TURN = 0x01 + +f1 = { + 'name': 'getVersion', + 'call': RD_VERSION, + 'params': 0, + 'read': 3 +} + +f2 = { + 'name': 'turn', + 'call': TURN, + 'params': 1, + 'read': 1 +} + +FUNCTIONS = [f1, f2] |