Advertisement
marko_rus

OC_craft_station_software

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