Ledger Nano X - The secure hardware wallet
SHARE
TWEET

light

a guest Apr 7th, 2020 187 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2.  
  3. local reactor = component.reactor_chamber
  4.  
  5. local rs_reactor = component.proxy(component.get("b2b6a36f-9ae7-41be-9eb9-374f7298279b"))
  6. local rs_light = component.proxy(component.get("7168c5ad-dc75-46b1-8dbb-e7624705e84c"))
  7.  
  8. while true do
  9.   local reactorTemp = reactor.getHeat()
  10.  
  11.   if reactorTemp > 3500 then
  12.     rs_reactor.setOutput(0, 0)
  13.     rs_light.setOutput(2, 0)
  14.   else
  15.     rs_reactor.setOutput(0, 255)
  16.     rs_light.setOutput(2, 255)
  17.   end
  18.  
  19.   print(reactor.getHeat())
  20.   os.sleep(1)
  21. 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