Skip to content

Commit

Permalink
Added debug output to trigger function #featureadd
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Aug 29, 2019
1 parent b207482 commit 952a1cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_function.h
Expand Up @@ -17,6 +17,9 @@ void digitalWriteFast(uint8_t pin, uint8_t x) {
void pulse() {
digitalWriteFast(TRG_OUT, LOW);
sensorHReading = 1;
#ifdef DEBUG
Serial.println("Trig!");
#endif
delay(TRG_DUR);
digitalWriteFast(TRG_OUT, HIGH);
}
Expand Down

0 comments on commit 952a1cd

Please sign in to comment.