This commit is contained in:
navid.sassan 2021-04-02 16:32:08 +02:00
parent 6e52b01e74
commit be14343a81

View File

@ -21,7 +21,7 @@ end
function poll() function poll()
if redstone_toggle_id ~= nil then if redstone_toggle_id ~= nil then
rednet.send(redstone_toggle_id, "set_state") rednet.send(redstone_toggle_id, "get_state")
end end
if de_store_mon_id ~= nil then if de_store_mon_id ~= nil then
-- todo -- todo
@ -45,8 +45,8 @@ end
function draw_screen() function draw_screen()
while true do while true do
-- term.clear() term.clear()
-- term.setCursorPos(0, 0) term.setCursorPos(0, 0)
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)
term.write('Press "R" to toggle the rainbows\n') term.write('Press "R" to toggle the rainbows\n')
@ -63,9 +63,9 @@ function draw_screen()
end end
end end
local sides = peripheral.setNames() local sides = peripheral.getNames()
for i = 1, #sides do for i = 1, #sides do
if peripheral.setType(sides[i]) == "modem" then if peripheral.getType(sides[i]) == "modem" then
modemSide = sides[i] modemSide = sides[i]
break break
end end