redstone event

Occurs when the redstone input on any side of the computer changes.

ExampleWait for a redstone change
Prints every time the redstone input changes.
Code
<nowiki>
while true do
  local event = os.pullEvent('redstone')
  print("Redstone changed!")
end
    </nowiki>
redstone
Event
Returns
    nil

Source CC:Tweaked
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.