djsfantasi
- Joined Apr 11, 2010
- 9,237
Wait a second...
Several posts back, you posted code with a call to selftest() in the setup routine. And you stated that the measurements in loop() were correct.
That is how the ATMega328 is SUPPOSED to work!
So what is the remaining question?
From my point of view you had working code. You coded it exactly as you were supposed to. It was returning valid results...
My link said that processor required an initial read, whose value MUST be ignored. It’s how I’ve always done it.
I’m confused...
Several posts back, you posted code with a call to selftest() in the setup routine. And you stated that the measurements in loop() were correct.
That is how the ATMega328 is SUPPOSED to work!
So what is the remaining question?
From my point of view you had working code. You coded it exactly as you were supposed to. It was returning valid results...
My link said that processor required an initial read, whose value MUST be ignored. It’s how I’ve always done it.
I’m confused...
