|
Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
|
#include <Scheduler.h>
Go to the source code of this file.
Functions | |
| void | setup () |
| void | loop () |
| void | debounceSetup () |
| void | debounceLoop () |
| void | buttonDown () |
| void | buttonUp () |
Variables | |
| unsigned int | count = 0 |
| const int | BUTTON = 4 |
| volatile int | state |
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.
This Arduino sketch shows how to use the Scheduler library; Software debounce a button.
Definition in file SchedulerDebounce.ino.
| void buttonDown | ( | ) |
Definition at line 71 of file SchedulerDebounce.ino.
| void buttonUp | ( | ) |
Definition at line 78 of file SchedulerDebounce.ino.
| void debounceLoop | ( | ) |
Definition at line 56 of file SchedulerDebounce.ino.
| void debounceSetup | ( | ) |
Definition at line 51 of file SchedulerDebounce.ino.
| void loop | ( | ) |
Definition at line 40 of file SchedulerDebounce.ino.
| void setup | ( | ) |
Definition at line 32 of file SchedulerDebounce.ino.
| const int BUTTON = 4 |
Definition at line 48 of file SchedulerDebounce.ino.
| unsigned int count = 0 |
Definition at line 30 of file SchedulerDebounce.ino.
| volatile int state |
Definition at line 49 of file SchedulerDebounce.ino.