Skip to content

Instantly share code, notes, and snippets.

@gurglet
Created February 12, 2016 11:59
Show Gist options
  • Save gurglet/c51c4bab6ed66d138bd8 to your computer and use it in GitHub Desktop.
Save gurglet/c51c4bab6ed66d138bd8 to your computer and use it in GitHub Desktop.
SetBitNr(PORTA, 4); // +3VA on
// Turn on ADC
SetBitNr(ADCSRA, ADEN);
ClrBitNr(PRR0, PRADC);
WaitForSampleRateTimer();
start_ecg_sample_timer();
WDR();
ClrBitNr(PRR0, PRSPI); // Turn on SPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment