help with multiple loops using 'Scheduler.startLoop'

Hi, i’m new here and need if somebody could help me,

i need to run multiple task with arduino uno, to do that i try using the next example code:

#include <Scheduler.h>

int led1 = 13;
int led2 = 12;
int led3 = 11;

void setup()

pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);


void loop()
digitalWrite(led1, HIGH);


digitalWrite(led1, LOW);

void loop2()
digitalWrite(led2, HIGH);
digitalWrite(led2, LOW);

void loop3()
if (Serial.available())
char c =;
if (c==‘0’)
digitalWrite(led3, LOW);
Serial.println(“Led turned off!”);
if (c==‘1’)
digitalWrite(led3, HIGH);
Serial.println(“Led turned on!”);


but here is the problem, when try to compile the sketch, the program send the next error:

In file included from sketch_nov30a.ino:1:
C:\Users\Administrador\Documents\Arduino\libraries\Scheduler/Scheduler.h:62: error: ‘byte’ does not name a type
C:\Users\Administrador\Documents\Arduino\libraries\Scheduler/Scheduler.h:64: error: ‘NUMBER_OF_SCHEDULED_ACTIONS’ was not declared in this scope
C:\Users\Administrador\Documents\Arduino\libraries\Scheduler/Scheduler.h:65: error: ‘byte’ does not name a type
sketch_nov30a.ino: In function ‘void setup()’:
sketch_nov30a:16: error: expected unqualified-id before ‘.’ token
sketch_nov30a:17: error: expected unqualified-id before ‘.’ token
sketch_nov30a.ino: In function ‘void loop3()’:
sketch_nov30a:55: error: ‘yield’ was not declared in this scope

i have installed the library scheduler.h but that don’t work.

please help me !!

Read this


Thanks, I'm gonna read this.

But, you know why that couldn't work if I was download the code from the arduino page.

Thanks again.