Guest User

startup

a guest
Jul 24th, 2016
1,642
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("right")
  2. local energy = peripheral.wrap("left")
  3. local current = energy.getEnergyStored()
  4. local max = energy.getMaxEnergyStored()
  5. local percent = current/max * 100 .."%"
  6.  
  7. modem.open(1)
  8. modem.open(2)
  9.  
  10. while true do
  11.   modem.transmit(1, 1, energy.getEnergyStored())
  12.   os.sleep(.1)
  13. end
RAW Paste Data