Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Fork of N3310LCD by
Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Diff: Joystick.cpp
- Revision:
- 2:e6c002c680a6
- Parent:
- 1:51961974fe55
--- a/Joystick.cpp Sun Mar 10 18:29:09 2013 +0000 +++ b/Joystick.cpp Fri Mar 15 08:01:22 2013 +0000 @@ -30,7 +30,6 @@ #define DEBOUNCE_MAX 15 #define DEBOUNCE_ON 10 #define DEBOUNCE_OFF 3 -Serial pc(USBTX,USBRX); // values correspond to use of a 3.3V supply for the LCD shield. const int Joystick::adcKeyVal[NUM_KEYS] = {50, // LEFT @@ -77,7 +76,6 @@ int adcKeyIn = joystick * 1024; // scale this up so we can use int int keyIn = getKey(adcKeyIn); - pc.printf("%d \n",adcKeyIn ); for (int i = 0; i < NUM_KEYS; i++) { if (keyIn == i) { //one key is pressed