Feel free to use this, you don't have to give credit, but it is appreciated. The variable "On?" is -1 if the button is off, and 1 if the button is on.