Skip to content

Instantly share code, notes, and snippets.

View rolfmobile99's full-sized avatar

rolfmobile99

  • West Coast
  • 18:39 (UTC -08:00)
View GitHub Profile
@jdneo
jdneo / timerInterrupt.ino
Created December 8, 2016 02:21
Timer Interrupt example for Adafruit Feather M0. Callback function can be written in TC3_Handler().
#define LED_PIN 13
#define CPU_HZ 48000000
#define TIMER_PRESCALER_DIV 1024
void startTimer(int frequencyHz);
void setTimerFrequency(int frequencyHz);
void TC3_Handler();
bool isLEDOn = false;