Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Dependents: N3310LCD_Demo FRDM_N3110LCD
Diff: Joystick.h
- Revision:
- 1:51961974fe55
- Parent:
- 0:7efa6655d94b
--- a/Joystick.h Sun Mar 10 18:15:25 2013 +0000 +++ b/Joystick.h Sun Mar 10 18:29:09 2013 +0000 @@ -13,7 +13,7 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * N3310LCD 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 @@ -34,22 +34,22 @@ { public: Joystick(PinName jstick); - + int getKeyState(int i); void resetKeyState(int i); void updateADCKey(); // call this to initiate joystick read - + private: // data int buttonCount[NUM_KEYS]; // debounce counters int buttonStatus[NUM_KEYS]; // button status - pressed/released int buttonFlag[NUM_KEYS]; // button on flags for user program - + static const int adcKeyVal[NUM_KEYS]; - + // I/O AnalogIn joystick; - + // functions int getKey(int input); };