//butona basılı süre boyunca led yakma
int buton_pin=2;
int ledPin=8;




void setup() {
pinMode(buton_pin,INPUT);
pinMode(ledPin,OUTPUT);
}

void loop() {
while(digitalRead(buton_pin)==LOW){
  digitalWrite(ledPin, LOW);
}
 digitalWrite(ledPin,HIGH);
 while(digitalRead(buton_pin)==HIGH){}}


$abcdeabcde151015202530fghijfghij