| 
                            Arduino Uno Buton İle Led Yakma | 
                     
                   
                    
                        
                            
#define Buton 9 
#define Led 10 
 
int buton_durumu = 0; 
 
void setup() { 
  pinMode(Buton, INPUT); 
  pinMode(Led, OUTPUT); 
} 
 
void loop() { 
  buton_durumu = digitalRead(Buton); 
  if (buton_durumu==true) 
  { 
    digitalWrite(Led, HIGH); 
  } 
  else 
  { 
    digitalWrite(Led, LOW); 
  } 
} 
 
 | 
                     
                   
                        | 
                           Kayit Tarihi: 21.12.2022     Tıklama: 474  | 
                     
                 
                     
                   
                 
             |