Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created February 1, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raytiley/ebbc1634de085ae6fcb9778173243a38 to your computer and use it in GitHub Desktop.
Save raytiley/ebbc1634de085ae6fcb9778173243a38 to your computer and use it in GitHub Desktop.
gpioPort = CreateObject("roControlPort", "BrightSign")
print "About to Setup GIPO"
if gpioPort <> invalid then
print "GPIO VALID"
stop
gpioPort.SetPort(m.player.msgPort)
for i=0 to 8 step 1
result = gpioPort.EnableInput(i)
if result then
print "Successfully listining on pin " + strI(i)
else
print "Failed to listen to pin" + strI(i)
endif
end for
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment