Keyestudio Smart Little Turtle Robot V3 Manual page 103

Table of Contents

Advertisement

www.keyestudio.com
Serial.print("cm");
Serial.println();
delay(250);
if (cm>=2 && cm<=10)
{
Serial.println("HIGH");
digitalWrite(3, HIGH);
}
else
{
Serial.println("LOW");
digitalWrite(3, LOW);
}
}
//*****************************************************************
Upload test code to development board and block ultrasonic sensor by
hand, then check if LED is on
103

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents