Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- br = peripheral.wrap("openperipheral_ticketmachine_0")
- br.clear()
- boxtime = br.addBox(5,5,100,10,0xFFFFFF,0.5)
- texttime = br.addText(6,6," ",0x123456)
- boxday = br.addBox(125,5,80,10,0xFFFFFF,0.5)
- textday = br.addText(126 ,6," ",0x123456)
- loop = true
- while true do
- time = os.time()
- day = os.day()
- texttime.setText("Current time: "..time)
- textday.setText("Current day: "..day)
Advertisement
Add Comment
Please, Sign In to add comment