Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open(“back”)
- dofile(“gui.lua”)
- gui.debug=false
- local s = gui.screen()
- s:setBackgroundColor(colors.black)
- local i = s:add(gui.button(“impulse”))
- local ib = s:add(gui.button(“on”))
- ib:onClick(function(function(button, frame, event, x, y)
- rednet.send(8, “on”)
- i:setBackgroundColor(colors.green)
- s:draw()
- end)
- s:draw()
- s:wait()
- s:reset()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement