Corpze:
I am learning along here, i am trying out different float, unsigned longs etc... i have also got my "cheat-code" to work... i tried the freqmeasure.h and that worked like a charm...don´t get me wrong here, i like to learn and i am listening to all of you! big thumbs up for you guys! So while i try to compile my "own" code i also trying librarys with examplecode...
just sharing what i tried yesterday, i also tried to add a button so i can choose when i want to take a reading.
Good move with the button.
When you use floating point constants like the 22 in
const float A = 22;
it's good to put in a decimal just to be sure, like how the UL goes on
const unsigned long U = 12345UL;
and usually people would write 22.0 instead of 22., I guess for easy reading.
Most of the time the compiler will get it right or it won't matter but it can gitcha and those bugs can be a real pain.
Keep on with the updates!