Created
February 28, 2016 10:38
-
-
Save smching/77a266b1a0f79d217f02 to your computer and use it in GitHub Desktop.
Lua_ShiftOut: A 74HC595 Shift Register Library for Lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
require "gpio" --import gpio library | |
require "shiftOut" --import shiftOut library | |
str= os.getenv("QUERY_STRING") --gets the value from URL | |
parameter= string.sub(str,1) --from character one until the end | |
value=tonumber(parameter) --convert string to integer | |
update_ShiftRegister(value,LSBFIRST) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment