InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold.

Fork of PinDetect by Andy K

Committer:
AjK
Date:
Thu Jan 13 09:53:26 2011 +0000
Revision:
1:611a8f5ac65c
Parent:
0:4f4ccb203a70
Child:
2:cb3afc45028b
1.4 See ChangeLog.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AjK 0:4f4ccb203a70 1 /*
AjK 0:4f4ccb203a70 2 Copyright (c) 2010 Andy Kirkham
AjK 0:4f4ccb203a70 3
AjK 0:4f4ccb203a70 4 Permission is hereby granted, free of charge, to any person obtaining a copy
AjK 0:4f4ccb203a70 5 of this software and associated documentation files (the "Software"), to deal
AjK 0:4f4ccb203a70 6 in the Software without restriction, including without limitation the rights
AjK 0:4f4ccb203a70 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
AjK 0:4f4ccb203a70 8 copies of the Software, and to permit persons to whom the Software is
AjK 0:4f4ccb203a70 9 furnished to do so, subject to the following conditions:
AjK 0:4f4ccb203a70 10
AjK 0:4f4ccb203a70 11 The above copyright notice and this permission notice shall be included in
AjK 0:4f4ccb203a70 12 all copies or substantial portions of the Software.
AjK 0:4f4ccb203a70 13
AjK 0:4f4ccb203a70 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
AjK 0:4f4ccb203a70 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
AjK 0:4f4ccb203a70 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AjK 0:4f4ccb203a70 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AjK 0:4f4ccb203a70 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
AjK 0:4f4ccb203a70 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
AjK 0:4f4ccb203a70 20 THE SOFTWARE.
AjK 0:4f4ccb203a70 21
AjK 1:611a8f5ac65c 22 1.4 13 Jan 2011 - Added an extra overloaded constructor that allows
AjK 1:611a8f5ac65c 23 the DigitalIn PinMode to be passed when the the class
AjK 1:611a8f5ac65c 24 is declared. So mode() isn't really needed but is left
AjK 1:611a8f5ac65c 25 in for completeness.
AjK 1:611a8f5ac65c 26
AjK 0:4f4ccb203a70 27 1.3 13 Jan 2011 - Updated some doxygen comments.
AjK 0:4f4ccb203a70 28
AjK 0:4f4ccb203a70 29 1.2 13 Jan 2011 - Added ChangeLog.h file.
AjK 0:4f4ccb203a70 30
AjK 0:4f4ccb203a70 31 1.1 13 Jan 2011 - Fixed some typos.
AjK 0:4f4ccb203a70 32
AjK 0:4f4ccb203a70 33 1.0 13 Jan 2011 - Initial release.
AjK 0:4f4ccb203a70 34
AjK 0:4f4ccb203a70 35 */