Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon=peripherial.wrap("side")
- mon.setBackgroundColor(colors.black)
- mon.clear()
- mon.setBackgroundColor(colors.lime)--or other color
- mon.setCursorPos(1,1)
- mon.print("This is a button")
- while true do
- event,side,x,y=os.pullEvent("monitor_touch")
- if x>0 and x<17 and y==1 then
- --do button stuff
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement