Hi all, first I would like to apologize for not being able to post a code snippet as I currently do not have access to the Internet other than through my phone.
The issue I'm having is as follows:
"Int i=0" on initial program setup
"i++" at the end of void loop
This part works perfectly also have some extra stuff in there to print "i" to an lcd.
I'm using a do-while loop to read a counter reset button state, this part also works perfectly completing the loop functions when the button is pressed and only when the button is pressed.
That being said after reseting the counter the variable "i" doesn't reset back to zero.
I have tried re initializing the variable "int i = 0" in that section of the loop without success.
How do I "reset" i back to zero within a loop?
I have learned a great deal from this site and through searching have not been able to locate a solid answer on this specific question. I appreciate any replies to help resolve this snag in my program.