Datasheet
x: LEFT, RIGHT: If X=-1 then 'LEFT' is pressed, if X=1 then 'RIGHT' is pressed, if X=0 then
neither left nor right are pressed
y: UP, DOWN: If Y=-1 then 'UP' is pressed, if Y=1 then 'DOWN' is pressed, if Y=0 then
neither up nor down are pressed
buttons: 0x00-0xFF, which is a bit mask for 8 button 0-7
Output: Nothing
AT+BLEMIDIEN
Enables or disables the BLE MIDI service.
Codebase Revision: 0.7.0
Parameters: State, which can be one of:
on
off
0
1
Output: If executed with no parameters, it will return the current state of the MIDI service as
an integer indicating if it is enabled (1) or disabled (0).
HID gamepad is disabled by default as of version 0.7.6, and must first be enabled
via AT+BLEHIDGAMEPADEN=1 before it can be used.
Note: You need to send both 'press' and 'release' events for each button, otherwise
the system will think that the button is still pressed until a release state is received.
# Press 'RIGHT' and 'Button0' at the same time
AT+BLEHIDGAMEPAD=1,0,0x01
# Press 'UP' and 'Button1' + 'Button0' at the same time
AT+BLEHIDGAMEPAD=0,-1,0x03
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 158 of 238










