Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- multi-line comments can go here in between
- the symbols you see above and below
- */
- int A = 5;
- int B = 6;
- // the setup function runs once when you press reset or power the board
- void setup() {
- // initialize digital pin 13 as an output.
- pinMode(A, OUTPUT);
- pinMode(B, OUTPUT);
- }
- // the loop function runs over and over again forever
- void loop() {
- digitalWrite(A, HIGH);
- delay(1000);
- digitalWrite(A, LOW);
- delay(1000);
- digitalWrite(B, HIGH);
- delay(1000);
- digitalWrite(B, LOW);
- delay(1000); // 2 slashes allow a line of comment
- }
Add Comment
Please, Sign In to add comment