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
1 parent
739e393
commit f3d10f9
Showing
5 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "Quirkbot.h" | ||
|
||
// Create one node for the wave and one for the led | ||
Wave wave; | ||
Led led; | ||
|
||
void setup(){ | ||
// set the wave lengh to 1 second | ||
wave.length = 1; | ||
|
||
// set where the led is (LE = "left eye") | ||
led.place = LE; | ||
|
||
// connect the light of the led to the wave out value | ||
led.light.connect(wave.out); | ||
} | ||
|
||
void loop(){ | ||
// nothing to do on the loop | ||
} |
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,18 @@ | ||
// include the Quirkbot library to your program: | ||
#include "Quirkbot.h" | ||
|
||
// create your Quirkbot nodes here: | ||
|
||
// create your other Arduino variables and functions here: | ||
|
||
void setup(){ | ||
// setup your Quirkbot nodes here: | ||
|
||
// put your other Arduino setup code here, to run once: | ||
|
||
} | ||
|
||
void loop(){ | ||
// put your main Arduino code here, to run repeatedly: | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
examples/Without_Quirkbot_Library/Without_Quirkbot_Library.ino
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,18 @@ | ||
// include the watchdog header: | ||
#include <avr/wdt.h> | ||
|
||
// create your variables and functions here: | ||
|
||
void setup(){ | ||
// put your setup code here, to run once: | ||
|
||
} | ||
|
||
void loop(){ | ||
// reset the watchdog regularly, to avoid making the board go | ||
// into bootloader mode: | ||
wdt_reset(); | ||
|
||
// put your main code here, to run repeatedly: | ||
|
||
} |
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