7 Segmant
CODE
int a=13; int b=12; int c=11; int d=10; int e=9;
int f=8; int g=7;
void setup() {
pinMode (a,OUTPUT); pinMode (b,OUTPUT); pinMode (c,OUTPUT);
pinMode (d,OUTPUT); pinMode (e,OUTPUT); pinMode (f,OUTPUT);
pinMode (g,OUTPUT);
}
int f=8; int g=7;
void setup() {
pinMode (a,OUTPUT); pinMode (b,OUTPUT); pinMode (c,OUTPUT);
pinMode (d,OUTPUT); pinMode (e,OUTPUT); pinMode (f,OUTPUT);
pinMode (g,OUTPUT);
}
void loop() {
digitalWrite (a,HIGH); digitalWrite (b,HIGH); digitalWrite (c,HIGH);
digitalWrite (d,HIGH); digitalWrite (e,HIGH); digitalWrite (f,HIGH);
digitalWrite (g,HIGH);
}
digitalWrite (a,HIGH); digitalWrite (b,HIGH); digitalWrite (c,HIGH);
digitalWrite (d,HIGH); digitalWrite (e,HIGH); digitalWrite (f,HIGH);
digitalWrite (g,HIGH);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น