-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
221 additions
and
6 deletions.
There are no files selected for viewing
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
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
27 changes: 27 additions & 0 deletions
27
content/assignments/SpinningAndBlinking/Arduino/blinking.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Blinking | ||
type: docs | ||
prev: assignments/SpinningAndBlinking/Arduino | ||
weight: 1 | ||
--- | ||
|
||
Making an LED blink is rather straight forward: | ||
|
||
```c | ||
const unsigned int LED{17}; // define a constant for the LED pin | ||
|
||
void setup() { | ||
pinMode(LED, OUTPUT); // configure the LED pin to be an output | ||
} | ||
|
||
void loop() { | ||
digitalWrite(LED, HIGH); // turn the LED on | ||
delay(1000); // wait 1 second | ||
digitalWrite(LED, LOW); // turn the LED off | ||
delay(1000); // wait 1 second | ||
} | ||
``` | ||
|
||
The `setup` function runs once on boot. | ||
|
||
The `loop` function runs over and over again forever. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Spinning | ||
type: docs | ||
prev: assignments/SpinningAndBlinking/Blinking | ||
weight: 3 | ||
--- | ||
|
||
It's time to get our hands dirty and really change this firmware. We're going to make a motor spin, but to do that, firmware won't be enough. | ||
|
||
Pick up a **Motion Shield** and any complementary components/equipment. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Support | ||
toc: false | ||
--- | ||
|
||
Karcher... yadda yadda. | ||
|
||
## Tutors | ||
|
||
Tutors... |
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