This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| long d, t; | |
| // NBTECH | |
| void setup() { | |
| pinMode(5, INPUT); // Echo pin of ultrasonic sensor | |
| pinMode(6, OUTPUT); // Trigger pin of ultrasonic sensor | |
| pinMode(7, OUTPUT); // Buzzer pin | |
| Serial.begin(9600); | |
| } | |
| void loop() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| long d, t; | |
| // NBTECH | |
| void setup() { | |
| pinMode(5, INPUT); // Echo pin of ultrasonic sensor | |
| pinMode(6, OUTPUT); // Trigger pin of ultrasonic sensor | |
| pinMode(7, OUTPUT); // Buzzer pin | |
| Serial.begin(9600); | |
| } | |
| void loop() { |