Skip to content

Instantly share code, notes, and snippets.

@YueGAO3175995

YueGAO3175995/example code Secret

Created Dec 10, 2020
Embed
What would you like to do?
/*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