fayllar.orgma'muriyatiga murojaat qiling
int button = 2;
int led = 8;
void setup() {
pinMode(led, OUTPUT);
pinMode(button, INPUT);
}
void loop(){
digitalWrite(led, HIGH);
else {
} Serial.println(digitalRead(button));