Skip to content

Commit

Permalink
Update SingleChannelSingleConversion.ino
Browse files Browse the repository at this point in the history
corrected ADC interrupt
  • Loading branch information
stevstrong authored Mar 24, 2019
1 parent 1763d8a commit 1167371
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void setup() {
Serial.begin(19200);
myADC.setTrigger(ADC_EXT_EV_SWSTART);//start on SWStart bit
myADC.setChannels(pin, 1); //this is actually the pin you want to measure
myADC.attachADCInterrupt(int_func);
myADC.attachInterrupt(int_func, ADC_EOC);
//
myADC.startConversion();
}; //end setup
Expand Down

0 comments on commit 1167371

Please sign in to comment.