Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- event = require("event")
- modem = component.modem
- alarm = component.os_alarm
- modem.open(451)
- modem.broadcast(451, "init")
- print("Робот 1... ")
- _, _, _, _, _, a =event.pull(15, "modem_message")
- if a == "true" then print("готов")
- print("Какую хуйню мы будем производить сегодня?")
- print("1) Ламповые транзисторы")
- print("2) Диски")
- print("3) Микросхема attiny25 SOIC-8")
- print("4) Микросхема Atmega4313 SOIC-20")
- print("5) Микросхема Atmega64 SOIC-48")
- a = io.read()
- if a < 6 then modem.broadcast(451, a)
- alarm.activate()
- end
- else print("ошибка")
- return 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement