Update sketchDistanceSerial.ino
This commit is contained in:
parent
d51ff806cc
commit
6ee9698503
|
@ -6,8 +6,8 @@
|
|||
// Tested on 17 September 2019
|
||||
// ---------------------------------------------------------------- //
|
||||
|
||||
#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
|
||||
#define echoPin 9 // attach pin D9 Arduino to pin Echo of HC-SR04
|
||||
#define trigPin 8 //attach pin D8 Arduino to pin Trig of HC-SR04
|
||||
|
||||
// defines variables
|
||||
long duration; // variable for the duration of sound wave travel
|
||||
|
|
Loading…
Reference in New Issue