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()
{
Serial.begin(9600);

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

Scheduler.startLoop(loop2);
Scheduler.startLoop(loop3);
}

void loop()
{
digitalWrite(led1, HIGH);

delay(1000);

digitalWrite(led1, LOW);
delay(1000);
}

void loop2()
{
digitalWrite(led2, HIGH);
delay(100);
digitalWrite(led2, LOW);
delay(100);
}

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

yield();
}

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 http://forum.arduino.cc/index.php?topic=223286.0

Mark

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.