Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arduino程式範例.

Similar presentations


Presentation on theme: "Arduino程式範例."— Presentation transcript:

1 arduino程式範例

2 setup() 範例 void setup() { // initialize the digital pin as an output.
pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); }

3 loop() 範例 void loop() { digitalWrite(8, HIGH); // set the LED on R1
digitalWrite(9, LOW); // set the LED on a digitalWrite(10, LOW); // set the LED on f digitalWrite(11, HIGH); // set the LED on R2 digitalWrite(12, HIGH); // set the LED on L2 digitalWrite(13, LOW); // set the LED on b }


Download ppt "Arduino程式範例."

Similar presentations


Ads by Google