SHOW:
|
|
- or go back to the newest paste.
1 | - | local monitor = peripheral.wrap("top") |
1 | + | local monitor = peripheral.wrap("bottom") |
2 | - | monitor.setTextScale(5) |
2 | + | monitor.setTextScale(4) |
3 | ||
4 | while true do | |
5 | monitor.write(textutils.formatTime(os.time(), true))--os.time() | |
6 | sleep(1) | |
7 | monitor.clear() | |
8 | monitor.setCursorPos(1,1) | |
9 | if rs.getInput("top") == true then | |
10 | term.clear() | |
11 | term.setCursorPos() | |
12 | os.reboot() | |
13 | end | |
14 | ||
15 | end |