joserio
Newbie level 4
Hola,
Guys.....I need your help.
Below is the code I found on the way
Above code is working fine, that code is counting by button pressed 1 time then increase value till xValue, now I change the button and added an opto coupler, what I mean is when opto coupler have a trigger voltage then counting for 1 time and next trigger and counting.
The trigger only 1 second then off to counting, next trigger will count again.
:fight::fight::bang::bang:
jose.
Guys.....I need your help.
Below is the code I found on the way
Code:
do{
if(Button(&PORTB,5,1,0))
{
Delay_ms(200); // If button is pressed, delay 0,2s and increment "number" with 1;
number = number +1;
Above code is working fine, that code is counting by button pressed 1 time then increase value till xValue, now I change the button and added an opto coupler, what I mean is when opto coupler have a trigger voltage then counting for 1 time and next trigger and counting.
The trigger only 1 second then off to counting, next trigger will count again.
:fight::fight::bang::bang:
jose.