Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
better support esp8266
  • Loading branch information
Makuna committed Apr 29, 2015
1 parent 57ae0f3 commit 9bf1ac3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/BlinkUsingCustomTask/BlinkUsingCustomTask.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// This demonstrates the use of the custom Task object feature of Task library
// It will use a custom task to blink a LED repeatedly,

#include <Arduino.h>

// Pin 13 has an LED connected on most Arduino boards.
#define LedPin 13
#define LedPin 13 // BUILTIN_LED

// include libraries
#include <Task.h>
Expand Down
4 changes: 2 additions & 2 deletions examples/BlinkUsingTaskFunction/BlinkUsingTaskFunction.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// It will use two FunctionTasks to to blink a LED repeatedly, by alternating
// which task is active and flpping the state of the LED pin


#include <Arduino.h>
#include <Task.h>

// Pin 13 has an LED connected on most Arduino boards.
int ledPin = 13;
int ledPin = 13; // BUILTIN_LED

TaskManager taskManager;

Expand Down
2 changes: 2 additions & 0 deletions examples/BlinkUsingTaskMacros/BlinkUsingTaskMacros.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// It will use a custom tasks defined using the helper macros to to blink
// a LED repeatedly,

#include <Arduino.h>

// include libraries
#include <Task.h>

Expand Down
2 changes: 1 addition & 1 deletion examples/BlinkUsingTaskMacros/taskBlinkLed.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Pin 13 has an LED connected on most Arduino boards.
#define ledPin 13
#define ledPin 13 // BUILTIN_LED

TASK_DECLARE_BEGIN(TaskBlinkLed)
// put member variables here that are scoped to this object
Expand Down
4 changes: 3 additions & 1 deletion examples/ButtonInterrupt/ButtonInterrupt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
//
// usefull information is sent to the serial monitor

#include <Arduino.h>

// Pin 13 has an LED connected on most Arduino boards.
#define LedPin 13
#define LedPin 13 // BUILTIN_LED
#define AButtonPin 4 // almost any io pin
#define BButtonPin 5 // almost any io pin

Expand Down
4 changes: 3 additions & 1 deletion examples/ButtonTask/ButtonTask.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
// the other button turn off the on board led when it is released
// Both will send usefull information to the serial monitor

#include <Arduino.h>

// Pin 13 has an LED connected on most Arduino boards.
#define LedPin 13
#define LedPin 13 // BUILTIN_LED
#define AButtonPin 4
#define BButtonPin 5

Expand Down
1 change: 1 addition & 0 deletions examples/MessageTask/MessageTask.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
// Usefull information will be sent to the serial monitor

#include <Arduino.h>

#define AButtonPin 4
#define BButtonPin 5
Expand Down

0 comments on commit 9bf1ac3

Please sign in to comment.