diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-03-03 19:48:39 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-03-03 19:48:39 (GMT) |
commit | 3d65986ed32533933eb0f996107285027cc39a71 (patch) | |
tree | 137a3e714da79d2a7e753694136230b67ac61658 /pybot/drivers/hotplug/led.py | |
parent | e54494fe25e5968175d719caab82c860b7afbbb7 (diff) |
add pybot
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] |