Posted 03 February 2013 - 04:46 AM
I have a touch screen monitor set up with a button program that when a button is pressed it sends a message over rednet to turn monitors on/off.
Code: http://pastebin.com/Q6Uv88xU
The problem im having is that when i click one of the buttons it sends the rednet signal three times and varies between on and off.
e.g. when I press the middle monitor button, it sends 3 On messages (which isnt a problem) but when i press the right monitor to turn it off it sends 3 messages of On, Off, On, meaning the monitor is left on.
I cant understand why this happens so i need some help! :P/>
The button code is direwolf20's and i just added in the functions for the monitors.
Code: http://pastebin.com/Q6Uv88xU
The problem im having is that when i click one of the buttons it sends the rednet signal three times and varies between on and off.
e.g. when I press the middle monitor button, it sends 3 On messages (which isnt a problem) but when i press the right monitor to turn it off it sends 3 messages of On, Off, On, meaning the monitor is left on.
I cant understand why this happens so i need some help! :P/>
The button code is direwolf20's and i just added in the functions for the monitors.