Just one note that even further 'abstracts' the pinCount variable away:
const int pins[pinCount] = { D0, D2, D3, D5, D7, A1, A3, A5, A7, TX };
void loop()
{
...
for (int i = 0; i < sizeof(pinCount)/sizeof(pinCount[0]); i++)
usePin(pins[i]);
...
}
@ScruffR, how does the greater forum community benefit from secret solutions?
Can you tell us more about the analyze()
function? I'm curious to really understand. I'm starting to do a project to 'balance' my HVAC system and wonder what you are doing with the data as well. That's a lot of data points, can you provide a physical description of how you will locate them?
Interesting project!! Maybe it needs to jump off this topic.