From fb1e12532be12bde95cc0c60ea147b0aca2a6295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Abonnel?= Date: Sun, 15 May 2022 22:09:37 +0000 Subject: [PATCH] Update sketchDistanceSerial.ino --- arduino/sketchDistanceSerial.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino/sketchDistanceSerial.ino b/arduino/sketchDistanceSerial.ino index b859879..c656eeb 100644 --- a/arduino/sketchDistanceSerial.ino +++ b/arduino/sketchDistanceSerial.ino @@ -6,8 +6,8 @@ // Tested on 17 September 2019 // ---------------------------------------------------------------- // -#define echoPin 8 // attach pin D9 Arduino to pin Echo of HC-SR04 -#define trigPin 9 //attach pin D8 Arduino to pin Trig of HC-SR04 +#define echoPin 2 // attach pin D2 Arduino to pin Echo of HC-SR04 +#define trigPin 3 //attach pin D3 Arduino to pin Trig of HC-SR04 // defines variables long duration; // variable for the duration of sound wave travel