Johnny Churne
Member level 5
Hello all dear member I want to count how many time I did press the button, I couldn't get any good result and not really understand how the Mikroc work, it doesn't work as C language. please help?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 3 4 5 6 7 8 void main(){ int count=0 while(1){ if(PORTB.RB0==0){ count = count+1; } } }
no I am not using Interrupt.
here is my code
Code C - [expand] 1 2 3 4 5 6 7 8 void main(){ int count=0 while(1){ if(PORTB.RB0==0){ count = count+1; } } }