Update sketchDistanceSerial-Ultrasonic.ino
This commit is contained in:
parent
cfe25978d0
commit
61972a77f9
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include "Ultrasonic.h"
|
||||
|
||||
#define echoPin 8 // attach pin D2 Arduino to pin Echo of HC-SR04
|
||||
#define trigPin 9 //attach pin D3 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
|
||||
|
||||
Ultrasonic sensor(trigPin,echoPin); // Trig et Echo
|
||||
|
||||
|
|
Loading…
Reference in New Issue