Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- if not fs.exists( "papi" ) then
- print( "Performing first time setup." )
- shell.run( "pastebin","get", "BsrHWQbW", "papi" )
- print("Finished. Please run program again.")
- error()
- end
- local Args = {...}
- if Args[1] == "update" then
- programName = shell.getRunningProgram()
- print("Updating.")
- fs.delete( programName )
- shell.run( "pastebin","get", "PcdGq3ms", programName )
- print("Finished updating.")
- error()
- end
- os.loadAPI("papi")
- w,h = 26,20
- function drawScreen()
- papi.clear()
- papi.resetButtons()
- if screen == "main" then
- papi.drawOutline( "FairPad", "By Fair", "black", "white" )
- end
- end
- screen = "main"
- drawScreen()
- while true do
- papi.submitEvents()
- lastEvents = papi.getEvents()
- end
Advertisement
Add Comment
Please, Sign In to add comment