Skip to content

Commit ad54b64

Browse files
alstrzebonskinordicjm
authored andcommitted
doc: samples: bluetooth: peripheral_hids_keyboard: Fix testing steps
Provides better description of testing steps related to turning Caps Lock ON and OFF. Jira: NCSDK-30979 Signed-off-by: Aleksander Strzebonski <[email protected]>
1 parent 2ad67fc commit ad54b64

File tree

1 file changed

+10
-8
lines changed
  • samples/bluetooth/peripheral_hids_keyboard

1 file changed

+10
-8
lines changed

samples/bluetooth/peripheral_hids_keyboard/README.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,14 @@ To test with the `Bluetooth Low Energy app`_, complete the following steps:
248248
The first one has the value ``02000F0000000000``, the second has the value ``0200000000000000``.
249249
These values correspond to press and release of character "l" with the Shift key pressed.
250250
#. In the app, select the HID Report (which has UUID ``0x2A4D`` and the properties ``Read``, ``WriteWithoutResponse``, and ``Write``).
251-
Enter ``02`` in the text box and click the :guilabel:`tick mark` button.
252-
This sets the modifier bit of the Output Report to 02, which simulates turning Caps Lock ON.
251+
Enter any number that has bit 1 set to ``1`` (for example ``02``) in the text box and click the :guilabel:`tick mark` button.
252+
This sets the Output Report to the written value, in which setting bit 1 to ``1`` simulates turning Caps Lock ON.
253+
Other bits are responsible for controlling other Output Report fields that are not reflected in the sample's UI, for example Num Lock.
253254

254255
Observe that **LED 3** is lit.
255256
#. Select the same HID Report again.
256-
Enter ``00`` in the text box and click :guilabel:`Write`.
257-
This sets the modifier bit to 00, which simulates turning Caps Lock OFF.
257+
Enter any number that has bit 1 set to ``0`` (for example ``00``) in the text box and click :guilabel:`Write`.
258+
Setting this bit of the Output Report to ``0`` simulates turning Caps Lock OFF.
258259

259260
Observe that **LED 3** turns off.
260261
#. Disconnect the device in the app.
@@ -301,13 +302,14 @@ To test with the `Bluetooth Low Energy app`_, complete the following steps:
301302
The first one has the value ``02000F0000000000``, the second has the value ``0200000000000000``.
302303
These values correspond to press and release of character "l" with the Shift key pressed.
303304
#. In the app, select the HID Report (which has UUID ``0x2A4D`` and the properties ``Read``, ``WriteWithoutResponse``, and ``Write``).
304-
Enter ``02`` in the text box and click the :guilabel:`tick mark` button.
305-
This sets the modifier bit of the Output Report to 02, which simulates turning Caps Lock ON.
305+
Enter any number that has bit 1 set to ``1`` (for example ``02``) in the text box and click the :guilabel:`tick mark` button.
306+
This sets the Output Report to the written value, in which setting bit 1 to ``1`` simulates turning Caps Lock ON.
307+
Other bits are responsible for controlling other Output Report fields that are not reflected in the sample's UI, for example Num Lock.
306308

307309
Observe that **LED 2** is lit.
308310
#. Select the same HID Report again.
309-
Enter ``00`` in the text box and click :guilabel:`Write`.
310-
This sets the modifier bit to 00, which simulates turning Caps Lock OFF.
311+
Enter any number that has bit 1 set to ``0`` (for example ``00``) in the text box and click :guilabel:`Write`.
312+
Setting this bit of the Output Report to ``0`` simulates turning Caps Lock OFF.
311313

312314
Observe that **LED 2** turns off.
313315
#. Disconnect the device in the app.

0 commit comments

Comments
 (0)