Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- R=peripheral.wrap("right");
- pcp=peripheral.wrap("top");
- pcp.open(3460);
- Var="0"
- while true do
- E=R.getEnergyStored();
- print(E)
- if E>9500000 then
- R.setActive(false);
- end
- if R.getActive() then
- Var="true"
- else
- Var="false"
- end
- pcp.transmit(3460, 1,"R1:"..Var)
- if E<500000 then
- R.setActive(true)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement