Arduino Counter outputs only 1 and 3

Status
Not open for further replies.

dann11

Full Member level 3
Joined
Oct 22, 2015
Messages
166
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,742
Hi! I am writing a program code in arduino, it will function as a counter. As I do Serial.println with the counter it only outputs 1 and 3.

I am simply using codes as:

Code:
count = count + 1;

I am using the same formula with some of the other counter but the rest are working perfectly well except for this counter, which only outputs 1 and 3.

What might be wrong?
 

And what is the rest part of the code? Show all code.
The first thought is you modify count somewhere else.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…