request sketch for relay with button up/down (no push button)
- 
					
					
					
					
 This post is deleted!
 
- 
					
					
					
					
 @rayan said: 
 If i do understand you correctly you want to toggle the relay when the switch is toggled regardless which state it is in?
 If so just remove the && state == LOW and the relay whill be toggled each time stateChagened togglesif ( stateChanged ) { if ( ledState == LOW ) { ledState = HIGH; } else { ledState = LOW; }
 
 
			
		 
					
				 
					
				