local MODEM_SIDE = "bottom" local CONTROLLER_SIDE = "front" -- ← поменяй при необходимости local CHANNEL = 123 local modem = peripheral.wrap(MODEM_SIDE) if not modem then error("Модем не найден снизу") end local controller = peripheral.wrap(CONTROLLER_SIDE) if not controller then error("Create Speed Controller не найден") end modem.open(CHANNEL) local speed = 0 controller.setSpeed(speed) print("Приёмник запущен") print("Текущая скорость:", speed) while true do local _, _, _, _, msg = os.pullEvent("modem_message") if type(msg) == "table" then if msg.action == "inc" then speed = speed + msg.step elseif msg.action == "dec" then speed = speed - msg.step end controller.setSpeed(speed) print("Скорость:", speed) end end