Forums Arduino Tutorial Discussions make LED go ON and OFF using Microcontroller Reply To: make LED go ON and OFF using Microcontroller

#2567

Bitahwa Bindu
Keymaster

HI. You can use the compliment operator ‘~’ to invert the current status. If button is pressed, it compliments the output.