Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Arduino baslangic dersleri 2
#define kirmizi_led 2
#define yesil_led 3
#define buton 7
int buton_durum = 0;
void setup()
pinMode(kirmizi_led, OUTPUT);
pinMode(yesil_led, OUTPUT);
pinMode(buton, INPUT);
void loop()
buton_durum = digitalRead(buton);
if (buton_durum == 1)
digitalWrite(yesil_led, HIGH);
digitalWrite(kirmizi_led, LOW);
digitalWrite(yesil_led, LOW);
digitalWrite(kirmizi_led, HIGH);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.