Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobarcelos committed Dec 11, 2017
1 parent 739e393 commit f3d10f9
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 2 deletions.
20 changes: 20 additions & 0 deletions examples/Blink/Blink.ino
@@ -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
}
18 changes: 18 additions & 0 deletions examples/Empty/Empty.ino
@@ -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 examples/Without_Quirkbot_Library/Without_Quirkbot_Library.ino
@@ -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:

}
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=Quirkbot
version=2.5.6
version=2.5.7
author=Quirkbot
maintainer=Paulo Barcelos <paulo@quirkbot.com>
sentence=Allows you to program Quirkbots.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "quirkbot-arduino-library",
"version" : "2.5.6",
"version" : "2.5.7",
"description" : "Quirkbot Arduino Library",
"author" : "Paulo Barcelos <paulo@quirkbot.com>",
"homepage" : "https://github.com/Quirkbot/QuirkbotArduinoLibrary",
Expand Down

0 comments on commit f3d10f9

Please sign in to comment.