We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys, I am Alvin, I got some problem with handling switches that are embedded in micro controller. I saw the sample program, it says that if the switch is being press then it is "0" if not it is "1". So I added the blinking code inside the if loop, if its a 0, it will light up if not it wont like up.
If(SW2==0){ //light up LED } IF(SW1==0){ //Dont light up LED }
Something like this.
Also, If I want to read data from USB port, so which part should i look for in the header section? Is it the I/O hexadecimal or other special hexadecimal?
thank You Very Much!
Sorry sorry wrong way of saying. It should be switches on the development board together with microcontroller.