A fully-Android-compatible two joysticks USB driver for LPC1768. The joysticks have 1 hat, 6 buttons, and there are 1P, 2P buttons.

Dependencies:   mbed

Fork of app-board-Joystick by Chris Styles

Revision:
3:f1a8ec4659f8
Parent:
2:84ea6e2fb4b6
--- a/config.h	Sat Dec 17 13:13:59 2016 +0000
+++ b/config.h	Sat Dec 17 15:10:12 2016 +0000
@@ -5,12 +5,17 @@
 // This configuration declares one interface, and two reports. This works well
 // with SDL, but some applications may fail to detect the second set of buttons
 // and hat.
-//#define CONFIG_TWO_REPORTS
+//#define CONFIG_TWO_REPORTS 1
 
 
 // This configuration declares one interface, one reports. The second joystick
 // is declared as four buttons instead of an extra hat. Some applications
 // fail to detect more than 16 buttons, or be confused by them.
-//#define CONFIG_2ND_PAD_AS_BUTTONS
+//#define CONFIG_2ND_PAD_AS_BUTTONS 1
+
 
-#define CONFIG_TWO_INTERFACES
\ No newline at end of file
+// This configuration declares two interfaces, which should be the most
+// compatible mode.
+// Note! This is currently a bug that will make a joystick block if the other 
+// joystick is moved AND not being polled.
+#define CONFIG_TWO_INTERFACES 1
\ No newline at end of file