Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- modem = peripheral.wrap("back")
- modem.open(7)
- term.setTextColor(colors.yellow)
- print("Sprawdzanie stanu CESU...")
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent()
- os.startTimer(5)
- if event == "timer" then
- term.setTextColor(colors.red)
- print("CESU nie jest aktywne")
- break
- end
- if message == "active" then
- term.setTextColor(colors.green)
- print("CESU jest aktywne")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement