Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
SchedulerDemo.ino File Reference
#include <Scheduler.h>
Include dependency graph for SchedulerDemo.ino:

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
void setup2 ()
 
void loop2 ()
 
void setup3 ()
 
void loop3 ()
 

Variables

const int LED = 13
 

Detailed Description

Version
1.0

License

Copyright (C) 2015-2016, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Description

This Arduino sketch shows how to use the Scheduler library. Two tasks are scheduled together with the main task.

  1. The main task prints an iteration number and delays.
  2. The second task blinks the built-in LED and prints the current status.
  3. The third task reads a line from Serial input. The line is printed with number of yields during the input wait.

Definition in file SchedulerDemo.ino.

Function Documentation

void loop ( )

Definition at line 48 of file SchedulerDemo.ino.

void loop2 ( )

Definition at line 73 of file SchedulerDemo.ino.

void loop3 ( )

Definition at line 98 of file SchedulerDemo.ino.

void setup ( )

Definition at line 35 of file SchedulerDemo.ino.

void setup2 ( )

Definition at line 66 of file SchedulerDemo.ino.

void setup3 ( )

Definition at line 92 of file SchedulerDemo.ino.

Variable Documentation

const int LED = 13

Definition at line 64 of file SchedulerDemo.ino.