Arduino Uno shield
Kodlar: //Yasin Demir (Shield/Kodu) #include <Servo.h> Servo motor; String data; const int trig=6; const int echo=7; int mesafe; //Pinler arduinoya tanıtıldı. int sure; int role6=11; int role5=12; int buzzer=10; int led_3=8; int led_2=9; int led_1=5; int servo=4; void setup() { motor.attach(servo); pinMode(servo,OUTPUT); //motor 4 nolu pine bağlı pinMode(trig , OUTPUT); pinMode(echo , INPUT); pinMode(led_1,OUTPUT); pinMode(led_2,OUTPUT);…
Devamı
Son Yorumlar