/LuaShiftOut

Port of the Arduino shiftOut function.

Primary LanguageLuaMIT LicenseMIT

LuaShiftOut

MIT License

Port of the Arduino shiftOut function.

Installation (for rasbian and debian-based)

sudo apt install luarocks lua-bitop
sudo luarocks install lua-periphery

Usage

require("shiftOut")

register = shiftOut:new(LatchPin, DataPin, ClockPin)

register:shiftOut("11000000") -- string value
register:shiftOut(192) -- decimal digit value

Modules

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Feel free to contribute to this project.

License

Distributed under the MIT License. See LICENSE for more information.