|
1 | | -/* FreqPeriodCounter |
2 | | - * Version 28-5-2013 |
3 | | - * Copyright (C) 2011 Albert van Dalen http://www.avdweb.nl |
4 | | - * |
5 | | - * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License |
6 | | - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
7 | | - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
8 | | - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
9 | | - * You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses |
| 1 | +/* |
| 2 | +FreqPeriodCounter |
| 3 | +Copyright (C) 2012 Albert van Dalen http://www.avdweb.nl |
| 4 | +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License |
| 5 | +as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
| 6 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
| 7 | +of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses . |
10 | 8 |
|
11 | | -Release Notes |
12 | | -17-12-2011 timeFunctionPtr to select millis or micros instead of bool variable |
13 | | -17-12-2011 New function ready() |
14 | | -22-04-2012 poll() counts all transients instead of low-high transients |
15 | | -5-5-2013 if(transientCount >= 2) // the first 2 measurements are invalid |
16 | | -28-5-2013 measurements are valid from start, added synchronize() |
17 | | -7-2-2017 Versatile by omitting the input pin, added poll(bool _level) and added constructor |
| 9 | +AUTHOR: Albert van Dalen |
| 10 | +WEBSITE: http://www.avdweb.nl/arduino/libraries/frequency-period-counter.html |
| 11 | +
|
| 12 | +HISTORY: |
| 13 | +1.0.0 17-12-2011 timeFunctionPtr to select millis or micros instead of bool variable |
| 14 | +1.0.1 17-12-2011 New function ready() |
| 15 | +1.0.2 22-04-2012 poll() counts all transients instead of low-high transients |
| 16 | +1.0.3 5-5-2013 if(transientCount >= 2) // the first 2 measurements are invalid |
| 17 | +1.0.4 28-5-2013 measurements are valid from start, added synchronize() |
| 18 | +1.0.5 7-2-2017 Versatile by omitting the input pin, added poll(bool _level) and added constructor |
18 | 19 |
|
19 | 20 | |
20 | 21 | <------------- period ------------> |
|
0 commit comments