Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(P4IN & GPIO_PIN1?0:1){
- if (state==1){
- state = 0;
- //Wait for this state to pass -- ends up saving the current state on button press.
- while (counter < 10000){
- counter++;
- }
- }
- else{
- state = 1;
- while (counter < 10000){
- counter++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement