View difference between Paste ID: Z08EWCvu and wz3UzwJ5
SHOW: | | - or go back to the newest paste.
1
local c = peripheral.wrap "left"
2
3
while true do
4
    local l = c.getRFStored() / c.getRFCapacity()
5
    redstone.setAnalogOutput("right", l * 15)
6
    sleep(0.1)
7
end