Menampilkan Karakter Pada 7Segmen

1.  Hardware [Kembali]


Sevent segment

Arduino
 

2.      Rangkaian Simulasi [Kembali]




3.  Listing Program[Kembali]


byte sev_seg[] =  {2,3,4,5,6,7,8,9};

  int seven()
  {
    digitalWrite(6,HIGH);
    digitalWrite(7,HIGH);
    digitalWrite(8,HIGH);
    digitalWrite(2,LOW);
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
    digitalWrite(5,LOW);
  }

   int eight()
  {
    digitalWrite(2,HIGH);
    digitalWrite(3,HIGH);
    digitalWrite(4,HIGH);
    digitalWrite(5,HIGH);
    digitalWrite(6,HIGH);
    digitalWrite(7,HIGH);
    digitalWrite(8,HIGH);
  }

void setup()
{
  for(int i=0;i<9;i++)
  {
  pinMode(sev_seg[i],OUTPUT);    
  }

}
void loop()
{
seven();
delay(1000); // 1 s delay
eight();
delay(1000); // 1 s delay
}



    4. Kondisi [Kembali]

    Tampilkan angka 7 delay 1 detik lalu angka 8


    5. Video Simulasi   [Kembali]





    6. Link Download [Kembali]


    m1p3.txt Menampilkan m1p3.txt.

    Tidak ada komentar:

    Posting Komentar