• 大小: 62KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-03
  • 语言: 其他
  • 标签: keypad  

资源简介

keypad库 Keypad-master.zip

资源截图

代码片段和文件信息

/*
|| @file Key.cpp
|| @version 1.0
|| @author Mark Stanley
|| @contact mstanley@technologist.com
||
|| @description
|| | Key class provides an abstract definition of a key or button
|| | and was initially designed to be used in conjunction with a
|| | state-machine.
|| #
||
|| @license
|| | 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; version
|| | 2.1 of the License.
|| |
|| | 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.
|| |
|| | You should have received a copy of the GNU Lesser General Public
|| | License along with this library; if not write to the Free Software
|| | Foundation Inc. 51 Franklin St Fifth Floor Boston MA  02110-1301  USA
|| #
||
*/
#include 


// default constructor
Key::Key() {
kchar = NO_KEY;
kstate = IDLE;
stateChanged = false;
}

// constructor
Key::Key(char userKeyChar) {
kchar = userKeyChar;
kcode = -1;
kstate = IDLE;
stateChanged = false;
}


void Key::key_update (char userKeyChar KeyState userState boolean userStatus) {
kchar = userKeyChar;
kstate = userState;
stateChanged = userStatus;
}



/*
|| @changelog
|| | 1.0 2012-06-04 - Mark Stanley : Initial Release
|| #
*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-26 01:01  Keypad-master\
     文件       31670  2018-11-23 12:15  Keypad-master.zip
     目录           0  2017-12-26 01:01  Keypad-master\examples\
     目录           0  2017-12-26 01:01  Keypad-master\examples\CustomKeypad\
     文件         894  2017-12-26 01:01  Keypad-master\examples\CustomKeypad\CustomKeypad.ino
     目录           0  2017-12-26 01:01  Keypad-master\examples\DynamicKeypad\
     文件        9231  2017-12-26 01:01  Keypad-master\examples\DynamicKeypad\DynamicKeypad.ino
     目录           0  2017-12-26 01:01  Keypad-master\examples\EventKeypad\
     文件        1942  2017-12-26 01:01  Keypad-master\examples\EventKeypad\EventKeypad.ino
     目录           0  2017-12-26 01:01  Keypad-master\examples\HelloKeypad\
     目录           0  2017-12-26 01:01  Keypad-master\examples\HelloKeypad3\
     文件        1589  2017-12-26 01:01  Keypad-master\examples\HelloKeypad3\HelloKeypad3.ino
     文件         748  2017-12-26 01:01  Keypad-master\examples\HelloKeypad\HelloKeypad.ino
     目录           0  2017-12-26 01:01  Keypad-master\examples\loopCounter\
     文件        1331  2017-12-26 01:01  Keypad-master\examples\loopCounter\loopCounter.ino
     目录           0  2017-12-26 01:01  Keypad-master\examples\MultiKey\
     文件        2104  2017-12-26 01:01  Keypad-master\examples\MultiKey\MultiKey.ino
     文件         733  2017-12-26 01:01  Keypad-master\keywords.txt
     文件         537  2017-12-26 01:01  Keypad-master\library.properties
     文件       35142  2017-12-26 01:01  Keypad-master\LICENSE
     文件         532  2017-12-26 01:01  Keypad-master\README.md
     目录           0  2017-12-26 01:01  Keypad-master\src\
     文件        1488  2017-12-26 01:01  Keypad-master\src\Key.cpp
     文件        1560  2017-12-26 01:01  Keypad-master\src\Key.h
     文件        9353  2017-12-26 01:01  Keypad-master\src\Keypad.cpp
     文件        5612  2017-12-26 01:01  Keypad-master\src\Keypad.h

评论

共有 条评论

相关资源