diff options
Diffstat (limited to 'lib/support/drivers/led.lua')
-rw-r--r-- | lib/support/drivers/led.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/support/drivers/led.lua b/lib/support/drivers/led.lua deleted file mode 100644 index 1095d93..0000000 --- a/lib/support/drivers/led.lua +++ /dev/null @@ -1,17 +0,0 @@ -local device = _G - -local string_char=string.char - -api={} -api.setLight = {} -api.setLight.parameters = {[1]={rname="message", rtype="string"}} -api.setLight.returns = {} -api.setLight.call = function (intensidad) - intensidad=tonumber(intensidad) - if (not intensidad) or intensidad<0 then intensidad=0 - elseif intensidad>255 then intensidad=255 end - - local msg = string_char(0x00) .. string_char(math.floor(intensidad)) -- entre 0 y 255 - device:send(msg) - local version_response = device:read() -end |