Skip to content

Commit

Permalink
Update Single_Shot_Conv_Ready_Controlled.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Nov 3, 2024
1 parent 7ca8402 commit 7bc2eb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void loop() {
float voltage = 0.0;
for(int i=0; i<32; i++){ // counter is 32, conversion rate is 8 SPS --> 4s
adc.startSingleMeasurement();
while(adc.isBusy()){}
while(adc.isBusy()){delay(0);}
}
voltage = adc.getResult_V(); // alternative: getResult_mV for Millivolt
Serial.print("Channel 0 vs GND [V]: ");
Expand Down

0 comments on commit 7bc2eb4

Please sign in to comment.