none
the function i want to display is only the result elapsedtime , but as i state he send unwanted millis (currenttimer0 and 1 ) between pressed buttons, how do i proceed?
thanks
delayPot = map(delayPot, 0 , 1023, 0, 255); //map delay pot adc value to 8 bits
That's an expensive way to divide by 4.
the function i want to display is only the result elapsedtime , but as i state he send unwanted millis (currenttimer0 and 1 ) how do i proceed?
If it is elapsed time that you want to display, why are you displaying something else?
Are you sure that the switch is wired correctly? How IS the switch wired?
yeah the delaypot thing is not implemented yet , at time i trying to convert the 10 bits to 8 bits for potentiometer input ,
the last line show whats matter
elapsedTime = ((currentTimer[0] + currentTimer[1]) / 2 ); // math the tap ms interval
display.showNumberDec(elapsedTime); // display elapsed time
yeah the sw is correct low state type +v------switch-----pin12---1k res----gnd
you see , in the end i get the result correct , but i want to get rid of the input readings on display
no one?
collingtech:
no one?
I gave up when you posted this:
edited for clarity
That poorly indented, improperly posted code is NOT clearer.
Use Tools + Auto Format to properly indent your code. Put all global variables together at the top of the sketch. Post the new code, using the left-most icon on the top row (</>).
thank you paulS