Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/support/drivers/hotplug/vibra.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/support/drivers/hotplug/vibra.lua')
-rw-r--r--lib/support/drivers/hotplug/vibra.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/support/drivers/hotplug/vibra.lua b/lib/support/drivers/hotplug/vibra.lua
deleted file mode 100644
index 0c3d985..0000000
--- a/lib/support/drivers/hotplug/vibra.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local device = _G
-
-api={}
-api.getVibra = {}
-api.getVibra.parameters = {} -- -- no input parameters
-api.getVibra.returns = {[1]={rname="par1", rtype="int"}}
-api.getVibra.call = function ()
- device:send(string.char(0x00)) -- codigo de operacion 0
- local sen_dig_response = device:read(3)
- local raw_val
- if not sen_dig_response or string.byte(sen_dig_response or "00000000", 2) == nil or string.byte(sen_dig_response or "00000000", 3) == nil
- then
- raw_val = "nil value"
- else
- raw_val = string.byte(sen_dig_response, 3) % 2
- end
- return raw_val
-
-end