COSA
An Object-Oriented Platform for Arduino Programming
|
Go to the source code of this file.
Classes | |
class | Periodic |
Macros | |
#define | periodic(timer, ms) |
#define | PERIODIC(timer, us) |
Copyright (C) 2012-2015, 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.
This file is part of the Arduino Che Cosa project.
Definition in file Periodic.hh.
#define periodic | ( | timer, | |
ms | |||
) |
Syntactic sugar for periodic blocks in the loop() function. Used in the form:
May be used several times in the loop() function. The timer variable is defined and available in the loop().
[in] | timer | variable. |
[in] | ms | period in milli-seconds. |
Definition at line 121 of file Periodic.hh.
#define PERIODIC | ( | timer, | |
us | |||
) |
Syntactic sugar for periodic blocks in the loop() function. Used in the form:
May be used several times in the loop() function. The timer variable is defined and available in the loop().
[in] | timer | variable. |
[in] | us | period in micro-seconds. |
Definition at line 145 of file Periodic.hh.