#define ledPin 8
#define tlacitko 12
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(tlacitko, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
int asd = digitalRead(tlacitko);
Serial.println(asd);
}