I have just started my first project. I got through with 2 periodically blinking LEDs. Now I want one LED (blue) to be lit constantly and the other (red) to be blinking as before. Can anyone help me with this?
This is my code for blinking LEDs.
int red_led = 4; int blue_led = 3; void setup() { pinMode(red_led, OUTPUT); pinMode(blue_led, OUTPUT); } void loop() { digitalWrite(blue_led, LOW); digitalWrite(red_led, HIGH); delay(1000); digitalWrite(blue_led, HIGH); digitalWrite(red_led, LOW); delay(1000); }