Analog joystick library

Dependents:   Melody

Fork of Joystick by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
el16ecb
Date:
Thu Mar 02 09:57:21 2017 +0000
Parent:
0:649b59b2fb26
Commit message:

Changed in this revision

Joystick.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 649b59b2fb26 -r 6192a5f69227 Joystick.cpp
--- a/Joystick.cpp	Tue Feb 07 13:01:48 2017 +0000
+++ b/Joystick.cpp	Thu Mar 02 09:57:21 2017 +0000
@@ -21,7 +21,7 @@
     // is connected to +3V3 so we read 1 when pressed and 0 when not pressed
     click->mode(PullDown);
     // we therefore need to fire the interrupt on a rising edge
-    click->rise(callback(this,&Joystick::click_isr));
+//   click->rise(callback(this,&Joystick::click_isr));
     // need to use a callback since mbed-os5 - basically tells it to look in this class for the ISR
     _click_flag = 0;