Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created July 19, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffersGlass/40b7da2534643cc746d476ef2e6dd43c to your computer and use it in GitHub Desktop.
Save JeffersGlass/40b7da2534643cc746d476ef2e6dd43c to your computer and use it in GitHub Desktop.
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