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