Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Brille

DerMarten Nov 15th, 2015 (edited) 101 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. local glass = peripheral.wrap("right")
  2. local me = peripheral.wrap("back")
  3. print (me.doc("getDemandedEnergy"))
  4. function addBox()
  5.          glass.addBox(1,1,220,10,0xFFFFFF,0.2)
  6. end
  7.  
  8.  
  9. function mePower()
  10.         local power = me.getAvgPowerUsage()
  11.         glass.addText(5,2,"ME Power usage: ca.".. power*2 .." RF/t", 0x000000)
  12. end
  13. while true do
  14.         glass.clear()
  15.         addBox()
  16.         mePower()
  17.         glass.sync()
  18.         sleep(0.1)
  19. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top