Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("top")
- m.clear()
- t=1
- while true do --=--
- m.setTextScale(1)
- m.setBackgroundColor(colors.yellow)
- m.setTextColor(colors.black)
- m.clear()
- m.setCursorPos(1,2)
- local nTime = os.time() --=--
- m.write( "Time: "..textutils.formatTime( nTime, false ) ) --=--
- m.setCursorPos(t,3)
- m.setTextColor(colors.red)
- if nTime > 12 then
- m.write("Bonsoir")
- else m.write("Bonjour") end
- t=t+1
- if t>15 then t=-6 end
- sleep(0.3) --=O=--
- end --=--
- -- Originalemant par HBA112 : "--=--" --
- -- Faites CTRL+R maintenue pour relancer le programme --
Advertisement
Add Comment
Please, Sign In to add comment