---
# System prepended metadata

title: 高一一班 0416
tags: [作業]

---

---
title: 高一一班 0416
tags: 作業
---

:::info
👉 [回首頁😁](https://hackmd.io/@smsh-program/101_main)

👉 [Tinkercad](https://www.tinkercad.com/)

👉 [upload.cc](https://upload.cc/)

:::

### 郭尚蓁😊😊😊
### LED control_1
```c++
int ledpin = '填入腳位';

void setup()
{

  pinMode(ledpin, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
}
```

### LED control_2
```c++
int ledpin = '填入腳位';
int ledpin2 = '填入腳位';

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode('填看看');
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite('填看看');
}
```

### LED control_3
```c++
int ledpin = '填入腳位';

void setup()
{
  pinMode(ledpin, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  delay(1000); 
  digitalWrite(ledpin, LOW);
  delay(1000);
}    
```

### LED control_4
```c++
int Gpin = '填入腳位';
int Ypin = '填入腳位';
int Rpin = '填入腳位';

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , HIGH);
  delay(1000);
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(1000);
}
```
### LED control_5
```c++
int Gpin = '填入腳位';
int Ypin = '填入腳位';
int Rpin = '填入腳位';
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```

### LED control_6
```c++

int ledpin = '填入腳位' ;
int buttonpin = '填入腳位' ;

void setup()
{
  pinMode(buttonpin, INPUT);
  pinMode(ledpin, OUTPUT);
}

void loop()
{
  if (digitalRead(buttonpin) == 0) {
    digitalWrite(ledpin, HIGH);
  } else {
    digitalWrite(ledpin, LOW);
  }
}
```
---


### 康千洹ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ
```c++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```
讚哦 

---
### 李品嫻

```c++
int ledpin = 7;
int ledpin2 = 8;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```

好耐斯哦，我覺得紅綠燈很好玩(餔拎餔拎的)


---
### 徐曼凌

```c++
int ledpin = 7;

int ledpin2 = 4;
void setup()
{

  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```

``` c++
int Gpin = 6;
int Ypin = 4;
int Rpin = 5;

int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```

---



### 張芮甄
```c++
int ledpin = 7;

int ledpin2 = 4;
void setup()
{

  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 6;
int Ypin = 5;
int Rpin = 4;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```


### 吳子弘

```c++
int ledpin = 7;

void setup()
{

  pinMode(ledpin, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin
, HIGH);
```



```c++
int ledpin = 7;
int ledpin2 =4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
int Gpin = 4;
int Ypin = 6;
int Rpin = 5;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 4; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
    
### 張宗亦 yo yo 🍇 yo 複製一次100塊
```c++
int ledpin = 7;
int ledpin2 = 11;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
接線好好玩，教隔壁的那位好累
---
### 鄭如倢
```c++
int ledpin =7;

int ledpin2 =4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 6;
int Ypin = 5;
int Rpin = 4;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```
主廚的菜單好看，又虐又甜WWW
我旁邊的快逼瘋我了
---
### 徐祥恩
```c++
int ledpin = 7;
int ledpin2 = 11;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
好玩耶
---
### 黃嵐暄有嗎黃蘭萱我有錯嗎 本身就是錯誤 陳奕君班會課一定 今天沒班會課真假 送啦 阿等等有英文阿 說不定他忘了 第五節是智慧鐵人賽真的完了 他會忘記
```c++ 
int ledpin = 7;
int ledpin2 = 4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 6;
int Ypin = 5;
int Rpin = 4;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```

---
### 莊承霈吃頓早餐有錯嗎 的確有  才沒有程式碼 告他
```c++
int ledpin = 7;
int ledpin2 = 4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 6;
int Ypin = 5;
int Rpin = 4;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
  }
```
我覺得很好玩 很酷 我覺得我是未來的工程師了


### 陳俐璇 
int ledpin = 7;
int ledpin2 =4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
 
 digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}

---

### 陳俞樺哭哭
```c++
int ledpin = 7;
int ledpin2 = 8;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c+++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
}
```

今天的對我來說比較難，比較看不懂

---
### 魏紹紘
```c++
int ledpin = 7;
int ledpin2 =8;

void setup()
{

  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
 }
```
```int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
他會亮欸!!!!!!!!!!!!
---



### 張焴景
```c++
int ledpin = 7;
int ledpin2 = 4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
課程好~只是學起來不簡單

```

___
### 陳立承
```c++
int ledpin = 7;
int ledpin2 = 5;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
 很有趣，實際操作跟電腦操作很不一樣
 
---
### 林洋吾
```c++
int ledpin = 7;
int ledpin2 = 6;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
int Gpin = 6;
int Ypin = 5;
int Rpin = 4;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(3000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(3000);
```
好難
---
### 林韋廷
```c++
int ledpin = 7;
int ledpin2 =6;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);

實際操作很有趣
---

### 陳敬之
```C++

int ledpin = 7;
int ledpin2 = 8;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```C++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
好累
---


### 黃翊涵🦔
![](https://i.imgur.com/u8Cuxg5.png)

```c++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
有點太難了 趕不上
---


### 邱羽彤ouob
```c++
int ledpin = 7;
int ledpin2 = 5;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2,OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 4; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
    }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
打程式好累......ouq

---

### 陳婕安😪
![](https://i.imgur.com/7SUox6S.png)
 ```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000); 
``` 
 
  好睡一直睡:D
  
___
### 李玟昀
```c++
int ledpin = 6;
int ledpin2 = 7;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```

很有趣喔，電燈閃亮亮，夜光光閃亮亮復仇鬼。 笑鼠
 
---

### 簡易蔓

```c++
int ledpin = 6;
int ledpin2 = 7;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
```
我覺得燈泡很可愛

---

### 謝沛臻
```c++
int ledpin = 7;
int ledpin2 = 4;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
眼睛很痛 頭也很痛 有點難
```
___
### 李書漢
![](https://i.imgur.com/siHrblO.png)
今天的有一點難，可是很好玩

___


### 吳崇豪
+0++++++++++++++++

```c++

int ledpin =11;
int ledpin2 = 3;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}


int Gpin = 4;
int Ypin = 6;
int Rpin = 5;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}.
很有趣
```
---

### 蕭常笙👍
```C++
int ledpin = 7;
int ledpin2 = 8;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2,OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin,HIGH);
}
程式好難用，我都不會用
---
### 吳昀蓁
```c++
void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
好複雜喔D:

---


### 林羿安
```c++
int ledpin = 7;
int ledpin2 = 3;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2,OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 4; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(500); 
    digitalWrite(Ypin, HIGH);
    delay(500); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
___
```
酷ㄟ

---
### 鄭宇翔~
```c++
int ledpin = 3;
int ledpin2 = 7;

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
好好玩~

### 盧士淵
```c++
int ledpin = 7;
int ledpin2 = 2; 

void setup()
{
  pinMode(ledpin, OUTPUT);
  pinMode(ledpin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledpin, HIGH);
  digitalWrite(ledpin2, HIGH);
}
```
```c++
int Gpin = 4;
int Ypin = 5;
int Rpin = 6;
int counter;

void setup()
{
  pinMode(Gpin , OUTPUT);
  pinMode(Ypin , OUTPUT);
  pinMode(Rpin , OUTPUT);
}

void loop()
{
  // 紅燈亮
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , HIGH);
  delay(5000);
  
  // 黃燈閃
  digitalWrite(Gpin , LOW);
  digitalWrite(Ypin , HIGH);
  digitalWrite(Rpin , LOW);

  for (counter = 0; counter < 3; ++counter) {
    digitalWrite(Ypin, LOW);
    delay(2000); 
    digitalWrite(Ypin, HIGH);
    delay(2000); 
  }

  // 綠燈亮
  digitalWrite(Gpin , HIGH);
  digitalWrite(Ypin , LOW);
  digitalWrite(Rpin , LOW);
  delay(5000);
}
今天的課程超好玩der，尤其是燈泡亮的一瞬間，有滿滿的成就感!!!


### ĦŜ_ཉྀ索ℵ隆ཉི
int ledpin = 7 ;
int buttonpin = 3 ;

void setup()
{
  pinMode(buttonpin, INPUT);
  pinMode(ledpin, OUTPUT);
}

void loop()
{
  if (digitalRead(buttonpin) == 0) {
    digitalWrite(ledpin, LOW);
  } else {
    digitalWrite(ledpin, HIGH);
  }
}
很有趣而且只要接對就可以自己改程式