|
請鍵入下列程式:
void setup(){
Serial.begin(9600);
pinMode(3,OUTPUT);
}
int x=0;
void loop(){
static int y=0;
int z=0;
digitalWrite(3,HIGH); delay(100);
digitalWrite(3,LOW); delay(100);
Serial.print("x = ");Serial.print(x);
Serial.print(" , y = ");Serial.print(y);
Serial.print(" , z = ");Serial.println(z);
x++;
y++;
z++;
}
|