This file contains 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
void setup() | |
{ | |
pinMode(13,OUTPUT); //Burada 13 numaralı pini çıkış olarak alıyoruz. | |
} | |
void loop() //Döngüyü baslatıyoruz. | |
{ | |
digitalWrite(13, HIGH); //Bu komut ledi yakar | |
// Eğer led yandıktan 1sn sonra söndürmek isterseniz delay(1000); kodunu eklemeniz yeterli. | |
} |
This file contains 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
int buton = 9; // Butonun bağlandığı pin | |
int led = 13; // Ledin bağladığı pin dahili pin ile beraber çalışır | |
// durumu değişecek değişken tanımı | |
int butonDurumu = 0; // buton durumu 0 olarak başlayacak | |
void setup() { | |
pinMode(led, OUTPUT); // led pinini çıkış olarak ayarlıyoruz | |
pinMode(buton, INPUT); // buton pinini giriş olarak kuruyoruz | |
} |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
void setup() { | |
pinMode(4, OUTPUT); | |
pinMode(10, INPUT); | |
} |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
int ledler[] = {4, 5, 6, 7}; | |
int led_sayisi = 4; | |
int ldr_pin = A0; | |
int deger = 0; | |
void setup() |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
int led1 = 7; //2.digital pini led1 değişkenine atadık | |
int led2 = 6; //3.digital pini led2 değişkenine atadık | |
int led3 = 5; //4.digital pini led3 değişkenine atadık | |
int led4 = 4; //5.digital pini led4 değişkenine atadık | |
int pot = A0; //A0 analog pini pot değişkenine atadık | |
int potdeger; //Kodlarımız içerisinde kullanacağımız potdeger değişkenini oluşturduk |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
float sicaklik; // Analog değeri dönüştüreceğimiz sıcaklık | |
float olculendeger; // Ölçeceğimiz analog değer | |
int sicaklikpin=1; // Analog değer girişi | |
void setup () { | |
Serial.begin(9600); // Seri haberleşme,sıcaklığı ekrandan takip edeceğiz. |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
const int buzzer = 13; // Buzzer'i 13 pine bağladık | |
void setup(){ | |
pinMode(buzzer, OUTPUT); // Buzzer'ı 13.pinden çıkış aldık | |
} |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
int potdeger; // Potansiyometreden alınacak değer için bir değişken tanımladık | |
int pot = A0; // A0 analog pini pot değişkenine atadık | |
const int buzzer = 13; // Buzzer'i 13 pine bağladık | |
void setup(){ | |
pinMode(buzzer, OUTPUT); // Buzzer'ı 13.pinden çıkış aldık |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
int ldrdeger; // LDR'den alınacak değer için bir değişken tanımladık | |
int ldr = A0; // A0 analog pini ldr değişkenine atadık | |
const int buzzer = 13; // Buzzer'i 13 pine bağladık | |
void setup(){ | |
pinMode(buzzer, OUTPUT); // Buzzer'ı 13.pinden çıkış aldık |
This file contains 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
// ************************ | |
// ** Kemal İKİZOĞLU ** | |
// ************************ | |
int a=8, b=7, c=2, d=1, e=5, f=10, g=11, h=3; | |
void setup() | |
{ | |
pinMode(a, OUTPUT); | |
pinMode(b, OUTPUT); | |
pinMode(c, OUTPUT); |
OlderNewer