EVShield  v1.3
EVShield Library Reference by mindsensors.com
EVs_NumericPad.h
1 // EVs_NumericPad.h
2 //
3 // This is a class for reading from NumericPad, made by Mindsensors.
4 // See http://www.mindsensors.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=138
5 
6 // Initial version: 2011-07-19 by Michael Giles
7 // Modified for EVShield: 2015-02-16 Michael Giles
8 // Large parts of the code is ported from the NXC library for the device,
9 // written by Deepak Patil.
10 
11 /*
12  This library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU Lesser General Public
14  License as published by the Free Software Foundation; either
15  version 2.1 of the License, or (at your option) any later version.
16 
17  This library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  Lesser General Public License for more details.
21 
22  You should have received a copy of the GNU Lesser General Public
23  License along with this library; if not, write to the Free Software
24  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26 
27 
28 #ifndef EVs_NumericPad_H
29 #define EVs_NumericPad_H
30 
31 #include "EVShieldI2C.h"
32 
37 {
38 public:
40  EVs_NumericPad(uint8_t i2c_address = 0xB4);
41 
45  void InitializeKeypad();
46 
53  bool GetKeyPress(int waitPeriod/* seconds */, byte &keyHolder);
54 
60  int GetKeysPressed();
61 
62 };
63 
64 #endif /* EVs_NumericPad_H_ */
void InitializeKeypad()
Definition: EVs_NumericPad.cpp:54
EVs_NumericPad(uint8_t i2c_address=0xB4)
Definition: EVs_NumericPad.cpp:49
This class implements I2C interfaces used by EVShield.
Definition: EVShieldI2C.h:32
bool GetKeyPress(int waitPeriod, byte &keyHolder)
Definition: EVs_NumericPad.cpp:76
int GetKeysPressed()
Definition: EVs_NumericPad.cpp:116
This class interfaces with NumericPad attached to EVShield.
Definition: EVs_NumericPad.h:36