---
# System prepended metadata

title: 高一八班 0518
tags: [作業]

---

---
title: 高一八班 0518
tags: 作業
---
---
> 作業繳交處

> [mblock](https://ide.mblock.cc/#/)

> [upload.cc](https://upload.cc/)
>　`![](放入你的連結)`
---
### 作業
#### 序列埠
![](https://i.imgur.com/xc6lBcq.png)
![](https://i.imgur.com/MxBhHcm.png)
#### 按鈕

![](https://upload.cc/i1/2021/05/10/rYpxhC.png
)

```c++
const int buttonPin = 2;  
int buttonState = 0; 
=====
void setup() {=====
  pinMode(buttonPin, INPUT);
}

void loop() {
  buttonState = digitalRead(buttonPin);
  if (buttonState == LOW) {
    // 自行輸入
  } else {
    // 自行輸入
  }
}
```

---