View difference between Paste ID: 9F5Gtrbp and 8gh0SZd7
SHOW: | | - or go back to the newest paste.
1
m = peripheral.wrap("bottom")
2
timer = 460
3
4
function countdown()
5
  sum = timer
6
  for i = timer,0,-1 do
7
    m.setCursorPos(1,1)
8
    m.write(sum)
9
    sum = sum - 1
10
    sleep(1)
11
    m.clear()
12
  end
13
end
14
15
16
while true do 
17
  redstone.setAnalogOutput("back",15)
18
  sleep(3)
19
  redstone.setAnalogOutput("back",0)
20
  countdown()
21
end