-
-
Save JeffersGlass/40b7da2534643cc746d476ef2e6dd43c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
// put your setup code here, to run once: | |
//TCCR1A = B00000000; //Normal Mode, no automatic pin toggling | |
//TCCR1B = _BV(CS12) | _BV(CS10); //Set up x1024 prescaler | |
Serial.begin(115200); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
if (millis() % 1000 == 0){ | |
Serial.println(TCNT1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment