-
-
Save YueGAO3175995/55b56bcfbc2f8a985fc8a957e6b8eb24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Doris GAO | |
* | |
* Dec 02 | |
* Example code for Atelier 1 Experiment 4.2 | |
*/ | |
int led1=11; | |
int led2=9; | |
void setup() { | |
pinMode(13,OUTPUT); | |
pinMode(12, OUTPUT); // setting pin 12 to output | |
pinMode(11, OUTPUT);// setting pin 11 to output | |
pinMode(9, OUTPUT);// setting pin 9 to output | |
pinMode(8, OUTPUT);// setting pin 8 to output | |
pinMode(7, OUTPUT);// setting pin 7 to output | |
} | |
void loop() { | |
digitalWrite(13, HIGH); // turning on pin 13 | |
digitalWrite(12, HIGH); | |
digitalWrite(8, HIGH); | |
digitalWrite(11, HIGH); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment