Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- term.redirect(peripheral.wrap("right"))
- mon.setTextScale(3.4)
- h = 0
- m = 0
- s = -1
- while h <= 2 do
- mon.setCursorPos(2,2)
- sleep(1)
- mon.clear()
- s = s + 1
- if s == 60 then
- m = m + 1
- s = 0
- end
- if m == 60 then
- h = h + 1
- m = 0
- end
- if m < 10 and s < 10 then
- print("0",h,":0",m,":0",s)
- elseif m >=10 and s < 10 then
- print("0",h,":",m,":0",s)
- elseif m <10 and s >=10 then
- print("0",h,":0",m,":",s)
- elseif m >=10 and s>=10 then
- print("0",h,":",m,":",s)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement