Remove HCSR04 sensor code
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#include <HCSR04.h>
|
||||
|
||||
HCSR04 distSensor(5, 4); //initialisation class HCSR04 (trig pin , echo pin, number of sensor)
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
pinMode(4, INPUT);
|
||||
pinMode(5, OUTPUT);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
Serial.println(distSensor.dist());
|
||||
delay(100);
|
||||
}
|
Reference in New Issue
Block a user