Skip to content

Commit bf91f83

Browse files
lenardgeorgelenardgeorge
authored andcommitted
Added act1 to L03
1 parent ab7bab9 commit bf91f83

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
CTC GO! CORE MODULE
3+
LESSON 03 - Let's Start Programming
4+
5+
This sketch is written to accompany Activity 1 in Lesson 03 of the CTC GO! core module
6+
7+
*/
8+
9+
void setup()
10+
{
11+
// initialize digital pin LED_BUILTIN as an output.
12+
pinMode(LED_BUILTIN, OUTPUT);
13+
}
14+
15+
void loop()
16+
{
17+
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
18+
delay(1000); // wait for a second
19+
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
20+
delay(1000); // wait for a second
21+
}

0 commit comments

Comments
 (0)