Pages: 1 [2]   Go Down
Author Topic: Serial Monitor to read IR Sensor and control LEDs  (Read 1614 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that doesn't work, i need something to store a number that is like 400,000.  I dont think unsigned int will work.  any thoughts?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 50115
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
that doesn't work, i need something to store a number that is like 400,000.  I dont think unsigned int will work.  any thoughts?
What doesn't work? The problem wasn't the data type. The problem was the stupid code.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so what are you recommending i change it too?  How long does it take to make those calculations?, is it causing a measurable delay?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 50115
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How long does it take to make those calculations?, is it causing a measurable delay?
No, the onus is on you to explain WHY you are doing what you are doing. It makes no sense. You are not averaging anything. Pretending that you are doesn't make it so.
Logged

Pages: 1 [2]   Go Up
Jump to: