Microcontroller › AVR › Program code for input › since you are using a switch
June 30, 2011 at 5:05 pm
#6402
raj ranjan
Participant
since you are using a switch so the onput will be either +5 v or 0 v
so you can use two function to read the input
bit_is_set(parameter1,parametre2)
and
bit_is_clear(parameter1,parameter2)