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

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
void loop1 ()
 

Variables

Semaphore mutex
 

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; Classical semafores used in this example to protect serial output sequences.

Definition in file SchedulerSemaphore.ino.

Function Documentation

void loop ( )

Definition at line 42 of file SchedulerSemaphore.ino.

void loop1 ( )

Definition at line 65 of file SchedulerSemaphore.ino.

void setup ( )

Definition at line 34 of file SchedulerSemaphore.ino.

Variable Documentation

Semaphore mutex

Definition at line 32 of file SchedulerSemaphore.ino.