void setup() {
pinMode(13, INPUT); // Button
pinMode(10, OUTPUT); // LED
}
void loop() {
int A = digitalRead(13); // Read the state of the button
digitalWrite(10, A); // Set the LED to the button state
}
void setup() {
pinMode(13, INPUT); // Button
pinMode(10, OUTPUT); // LED
}
void loop() {
int A = digitalRead(13); // Read the state of the button
digitalWrite(10, A); // Set the LED to the button state
}