Ligne 326 : |
Ligne 326 : |
| # Press 'UP' and 'Button1' + 'Button0' at the same time | | # Press 'UP' and 'Button1' + 'Button0' at the same time |
| AT+BLEHIDGAMEPAD=0,-1,0x03</nowiki> | | AT+BLEHIDGAMEPAD=0,-1,0x03</nowiki> |
| + | |
| + | == AT+BLEMIDIEN == |
| + | Enables or disables the BLE MIDI service. |
| + | * Codebase Revision: 0.7.0 |
| + | * Parameters: State, which can be one of: |
| + | ** '''1''' ou '''on''' |
| + | ** '''0''' ou '''off''' |
| + | * 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). |
| + | {{ambox|text=Note: This command will require a reset to take effect.}} |
| + | |
| + | <nowiki># Check the current state of the MIDI service |
| + | AT+BLEMIDIEN |
| + | 1 |
| + | OK |
| + | |
| + | # Enable the MIDI Service |
| + | AT+BLEMIDIEN=1 |
| + | OK</nowiki> |
| + | |
| + | == AT+BLEMIDIRX == |
| + | Reads an incoming MIDI character array from the buffer. |
| + | * Codebase Revision: 0.7.0 |
| + | * Parameters: None |
| + | * Output: The midi event in byte array format |
| + | |
| + | <nowiki>AT+BLEMIDIRX |
| + | 90-3C-7F |
| + | OK</nowiki> |
| + | |
| + | == AT+BLEMIDITX == |
| + | Sends a MIDI event to host. |
| + | * Codebase Revision: 0.7.0 |
| + | * Parameters: The MIDI event in hex array format, which can be either: |
| + | ** A series of full MIDI events (up to 4 events) |
| + | ** Exactly 1 full MIDI event + several running events without status (up to 7) |
| + | * Output: None |
| + | |
| + | <nowiki># Send 1 event (middle C with max velocity) |
| + | AT+BLEMIDITX=90-3C-7F |
| + | OK |
| + | |
| + | # Send 2 events |
| + | AT+BLEMIDITX=90-3C-7F-A0-3C-7F |
| + | OK |
| + | |
| + | # Send 1 full event + running event |
| + | AT+BLEMIDITX=90-3C-7F-3C-7F |
| + | OK</nowiki> |
| + | |
| + | == AT+BLEBATTEN |
| + | Enables the Battery Service following the definition from the Bluetooth SIG. |
| + | |
| + | * Codebase Revision: 0.7.0 |
| + | * Parameters: Whether the battery service should be enabled, via on of the following values: |
| + | ** '''1''' ou '''on''' |
| + | ** '''0''' ou '''off''' |
| + | * Output: If executed with no parameters, a numeric value will be returned indicating whether the battery service is enabled (1) or disabled (0). |
| + | {{ambox|text=This command requires a system reset to take effect.}} |
| + | |
| + | == AT+BLEBATTVAL == |
| + | Sets the current battery level in percentage (0..100) for the Battery Service (if enabled). |
| + | * Codebase Revision: 0.7.0 |
| + | * Parameters: The percentage for the battery in the range of 0..100. |
| + | * Output: If executed with no parameters, the current battery level stored in the characteristic. |
| + | |
| + | <nowiki># Set the battery level to 72% |
| + | AT+BLEBATTVAL=72 |
| + | OK</nowiki> |
| | | |
| {{Bluefruit-LE-Shield-TRAILER}} | | {{Bluefruit-LE-Shield-TRAILER}} |