Bluetooth controller buttons


#1

I have an mbot Ranger with a bluetooth controller. I pretty well understand how to program it but there are some buttons on the controller I can’t figure out. On button has three dashes one above the other, one has a plus sign, and there is another one in between the L2 and R2 buttons. I looked at the MePS2.h file but I do not see those defined. This is from the MePS2.file:

#define MeJOYSTICK_RX 6
#define MeJOYSTICK_RY 8
#define MeJOYSTICK_LX 2
#define MeJOYSTICK_LY 4

#define MeJOYSTICK_R1 1
#define MeJOYSTICK_R2 3
#define MeJOYSTICK_L1 5
#define MeJOYSTICK_L2 7
#define MeJOYSTICK_TRIANGLE 9
#define MeJOYSTICK_XSHAPED 10
#define MeJOYSTICK_SQUARE 11
#define MeJOYSTICK_ROUND 12
#define MeJOYSTICK_START 13
#define MeJOYSTICK_UP 14
#define MeJOYSTICK_DOWN 15
#define MeJOYSTICK_LEFT 16
#define MeJOYSTICK_RIGHT 17
#define MeJOYSTICK_SELECT 18
#define MeJOYSTICK_MODE 19
#define MeJOYSTICK_BUTTON_L 20
#define MeJOYSTICK_BUTTON_R 21
#define MeJOYSTICK_INIT_VALUE 0
#define MeJOYSTICK_ANALOG_ERROR 0


#2

The middle button is for bluetooth pairing so probably not readable. As for the others I don’t have a controller so can’t really help other than to say that there’s some test code in source file MePS2Test2.ino - perhaps try that and see how the menu and + buttons are mapped (if at all)

Sadly, experience has shown me that makeblock arduino coding documentation is almost non existent, so needs some trial and error.