---
# System prepended metadata

title: 0508 Arduino 作業
tags: [Arduino]

---

---
title: 0508 Arduino 作業
tags: Arduino
---

第三組
```
void setup() {
  // put your setup code here, to run once:
  pinMode(A0,INPUT);
  pinMode(A1,INPUT);
  pinMode(A2,INPUT);

  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  analogWrite(9,analogRead(A0)/4);
  analogWrite(10,analogRead(A1)/4);
  analogWrite(11,analogRead(A2)/4);
  Serial.print(analogRead(A0)/4);
  delay(1000);
  
  Serial.print(analogRead(A1)/4);
  delay(1000);
  
  Serial.println(analogRead(A2)/4);
  delay(1000);  
}
```