Pure Lua Raspberry Pi GPIO library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rockspecs
src
.gitignore
LICENSE
README.md

README.md

rpio.lua

Pure Lua Raspberry Pi GPIO library

local rpio = require 'rpio'
local gpio = rpio(12)

gpio.set_direction('out')
gpio.write(1)

gpio.set_direction('in')
print(gpio.read())