Go Down

Topic: Serial Monitor to read IR Sensor and control LEDs (Read 1 time) previous topic - next topic

earthswater

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?

PaulS

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.

earthswater

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

PaulS

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.

Go Up