Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pybot/drivers/butia.py
diff options
context:
space:
mode:
Diffstat (limited to 'pybot/drivers/butia.py')
-rw-r--r--pybot/drivers/butia.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pybot/drivers/butia.py b/pybot/drivers/butia.py
new file mode 100644
index 0000000..74f6f0f
--- /dev/null
+++ b/pybot/drivers/butia.py
@@ -0,0 +1,19 @@
+
+RD_VERSION = 0x02
+GET_VOLT = 0x03
+
+f1 = {
+ 'name': 'read_ver',
+ 'call': RD_VERSION,
+ 'params': 0,
+ 'read': 2
+}
+
+f2 = {
+ 'name': 'get_volt',
+ 'call': GET_VOLT,
+ 'params': 0,
+ 'read': 2
+}
+
+FUNCTIONS = [f1, f2]