7 SEGMENT DISPLAY from (9 to 0) using EMBEDDED EXPERIMENTAL KIT and cc3200 LAUNCH PAD to DISPLAY RED and GREEN LIGHT with BUZZER void setup()
{
pinMode(17,OUTPUT);
pinMode(15,OUTPUT);
pinMode(14,OUTPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,OUTPUT);
pinMode(4,OUTPUT);
pinMode(3,OUTPUT);
}
void loop()
{
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(8,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(10,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(4,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(4,LOW);
digitalWrite(8,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,HIGH);
digitalWrite(3,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(10,HIGH);
digitalWrite(8,LOW);
digitalWrite(9,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(10,HIGH);
digitalWrite(6,LOW);
digitalWrite(9,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(3,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
digitalWrite(14,HIGH);
delay(1000);
digitalWrite(14,LOW);
digitalWrite(15,HIGH);
delay(1000);
digitalWrite(15,LOW);
delay(1000);
digitalWrite(17,HIGH);
delay(2000);
digitalWrite(17,LOW);
delay(2000);
}