This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
cory1234567's profile picture

[LUA][HELP]redstone wont turn off

Started by cory1234567, 11 June 2013 - 07:08 AM
cory1234567 #1
Posted 11 June 2013 - 09:08 AM
http://pastebin.com/1iwuzsh8 buttonAPI
http://pastebin.com/vTUM1sFd control program

useing the button api direwolf20 made ive been trying to get the redstone signal to turn off when i click the button again but it wont turn off could someone help me with please. keep in mind im a beginner at programming im trying to learn.
Edited on 11 June 2013 - 07:10 AM
LBPHacker #2
Posted 11 June 2013 - 09:33 AM
Replace the whole code from line 12 to line 18:
rs.setOutput("back", not rs.getOutput("back"))
cory1234567 #3
Posted 11 June 2013 - 09:43 AM
thanks amillion for the help