Update sketchDistanceSerial.ino

This commit is contained in:
Cédric Abonnel 2022-05-15 22:03:20 +00:00
parent 2de72ab928
commit 0f76c5699b
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@
// Tested on 17 September 2019 // Tested on 17 September 2019
// ---------------------------------------------------------------- // // ---------------------------------------------------------------- //
#define echoPin 9 // attach pin D9 Arduino to pin Echo of HC-SR04 #define echoPin 8 // attach pin D9 Arduino to pin Echo of HC-SR04
#define trigPin 8 //attach pin D8 Arduino to pin Trig of HC-SR04 #define trigPin 9 //attach pin D8 Arduino to pin Trig of HC-SR04
// defines variables // defines variables
long duration; // variable for the duration of sound wave travel long duration; // variable for the duration of sound wave travel