1) Flasing led
void setup()
{
pinMode(PF_1, OUTPUT); //sets PF1 pin as output(RED LED locate here)
pinMode(PF_2, OUTPUT); //sets PF2 pin as output(BLUE LED locate here)
pinMode(PF_3, OUTPUT); //sets PF3 pin as output(GREEN LED locate here)
}
void loop()
{
digitalWrite(PF_1, HIGH); // Sets PF1 in high state(RED LED on)
delay(10);
digitalWrite(PF_1, LOW); // Sets PF1 in high state(RED LED off)
delay(400);
digitalWrite(PF_2, HIGH); // Sets PF2 in high state(BLUE LED on)
delay(10);
digitalWrite(PF_2, LOW); // Sets PF2 in high state(BLUE LED off)
delay(400);
digitalWrite(PF_3, HIGH); // Sets PF2 in high state(GREEN LED on)
delay(10);
digitalWrite(PF_3, LOW); // Sets PF2 in high state(GREEN LED off)
delay(400);
}
2) To turn on the white led……!!!
Combination 3 led will give white colour which is not in the board
void setup()
{
pinMode(PF_1, OUTPUT); //sets PF1 pin as output(RED LED locate here)
pinMode(PF_2, OUTPUT); //sets PF2 pin as output(BLUE LED locate here)
pinMode(PF_3, OUTPUT); //sets PF3 pin as output(GREEN LED locate here)
}
void loop()
{
digitalWrite(PF_1, HIGH); // Sets PF1 in high state(RED LED on)
digitalWrite(PF_2, HIGH); // Sets PF2 in high state(BLUE LED on)
digitalWrite(PF_3, HIGH); // Sets PF2 in high state(GREEN LED on)
}
Next ARM based SCADA