Skip to content

ryanplusplus/rpio.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())