Skip to content

Instantly share code, notes, and snippets.

@monabat79
Last active March 23, 2017 18:49
Show Gist options
  • Select an option

  • Save monabat79/8d9062e8c3a33a92f1598eed9ed937a3 to your computer and use it in GitHub Desktop.

Select an option

Save monabat79/8d9062e8c3a33a92f1598eed9ed937a3 to your computer and use it in GitHub Desktop.
sample microcontroller program for opencomputers minecraft mod. when it receives a redstone signal in the front, it beeps
local rs = component.proxy(component.list("redstone")())
while true do
if rs.getInput(3) > 0 then
computer.beep()
end
computer.pullSignal()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment