Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turbine = peripheral.wrap("back")
- modem = peripheral.wrap("top")
- running = true
- compteur = 0
- function network()
- rotorSpeed = turbine.getRotorSpeed()
- energy = turbine.getEnergyProducedLastTick()
- active = turbine.getActive()
- status = "Désactivée"
- if(active) then
- status = "Activée"
- end
- tr = rotorSpeed .. " / " .. energy .. " / " .. status .. "*"
- modem.transmit(2, 1, tr)
- term.setCursorPos(1, 1)
- term.clear()
- print("(" .. compteur .. ") : " .. tr)
- end
- while(true) do
- network()
- compteur = compteur + 1
- sleep(0.000000000000000000000000000001)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement