From 8012e907b1a334b5951c5056cf13e95001e23490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Abonnel?= Date: Sun, 15 May 2022 17:48:11 +0000 Subject: [PATCH] Update sketchdistanceSerial.ino --- arduino/sketchdistanceSerial.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino/sketchdistanceSerial.ino b/arduino/sketchdistanceSerial.ino index 6fa38c4..a40adb7 100644 --- a/arduino/sketchdistanceSerial.ino +++ b/arduino/sketchdistanceSerial.ino @@ -1,5 +1,5 @@ #include "Ultrasonic.h" -Ultrasonic ultrasonic(8,9); // Trig et Echo +Ultrasonic capteur(8,9); // Trig et Echo void setup() { Serial.begin(9600); @@ -8,9 +8,9 @@ void setup() { } void loop () { - int dist = ultrasonic.Ranging(CM); + int dist = capteur.Ranging(CM); Serial.print(dist); Serial.println(" cm"); - delay(100); + delay(100); // 100 ms }