Please enable JavaScript.
Coggle requires JavaScript to display documents.
arduino電路應用
資訊三忠2號戴育昇 ((void loop() { (digitalWrite(LEDRed, LOW); //…
arduino電路應用
資訊三忠2號戴育昇
-
-
-
-
void setup() {
-
pinMode(LEDYellow, OUTPUT);
pinMode(LEDGreen, OUTPUT);
-
void loop() {
digitalWrite(LEDRed, LOW); // 綠燈
digitalWrite(LEDYellow, LOW);
digitalWrite(LEDGreen, HIGH);
-
digitalWrite(LEDRed, LOW); // 黃燈
digitalWrite(LEDGreen, LOW);
digitalWrite(LEDYellow, HIGH);
-
digitalWrite(LEDYellow, LOW);
digitalWrite(LEDGreen, LOW);
digitalWrite(LEDRed, HIGH); // 紅燈
-
-