void demoCounter() {
int localCount = 0;
static int staticCount = 0;
localCount++;
staticCount++;
Serial.print("localCount = ");
Serial.print(localCount);
Serial.print(" , staticCount = ");
Serial.println(staticCount);
}
void setup() {
Serial.begin(9600);
}
void loop() {
demoCounter();
delay(1000);
}