Servo myservo; #define echopin 2
Download 31 Kb.
|
smart park
#include Servo myservo; #define echopin 2 #define trigpin 3 #define led 13 int joriy_masofa = 10; long chastota; long oraliq_masofa; void setup(){ Serial.begin(9600); myservo.attach(4); myservo.write(0); pinMode (trigpin, OUTPUT); pinMode (echopin, INPUT); pinMode(led,OUTPUT); delay(1000); } void loop(){ ultra_read(); Serial.print("oraliq_masofa="); Serial.println(oraliq_masofa); if(oraliq_masofa if(oraliq_masofa>joriy_masofa){ |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling