---
# System prepended metadata

title: 跑馬燈
tags: [FD_Arduino_Class]

---

###### tags: `FD_Arduino_Class`
# 跑馬燈
## 接線圖
![](https://i.imgur.com/EoDB925.png =500x)

## Code
```cpp=
void setup(){
    pinMode(11,OUTPUT);
    pinMode(12,OUTPUT);
    pinMode(13,OUTPUT);
}

void loop(){
    digitalWrite(11,1);
    delay(500);
    digitalWRite(11,0);
    digitalWrite(12,1);
    delay(500);
    digitalWRite(12,0);
    digitalWrite(13,1);
    delay(500);
    digitalWRite(13,0);
}
```