const int LED_PIN = 13;
unsigned char ledState = 0;
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
ledState = ~ledState; // Toggle the value of ledState using the NOT operator
digitalWrite(LED_PIN, ledState);
delay(1000);
}
const int LED_PIN = 13;
unsigned char ledState = 0;
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
ledState = ~ledState; // Toggle the value of ledState using the NOT operator
digitalWrite(LED_PIN, ledState);
delay(1000);
}