Skip to content

Conversation

lemrey
Copy link
Contributor

@lemrey lemrey commented Nov 29, 2024

Add Bluetooth HID service and HID keyboard sample.
If you pair with your phone it sends some keystrokes in a loop.

@lemrey lemrey changed the title [wip] bluetooth: service: HID service bluetooth: services: HID service Feb 21, 2025
@lemrey lemrey marked this pull request as ready for review February 21, 2025 13:56
@lemrey lemrey added this to the 0.1.0 milestone Mar 4, 2025
@lemrey lemrey removed this from the v0.1.0 milestone Mar 25, 2025
Copy link
Contributor

@eivindj-nordic eivindj-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some initial comments from earlier. Will do more thorough review after it is rebased.

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(ble_hid_keyboard)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
project(ble_hid_keyboard)
project(ble_hids_keyboard)

@eivindj-nordic eivindj-nordic force-pushed the hids branch 8 times, most recently from d23a847 to 2b0a7aa Compare May 8, 2025 11:58
@eivindj-nordic eivindj-nordic added this to the v0.9.0 milestone May 28, 2025
@eivindj-nordic eivindj-nordic force-pushed the hids branch 2 times, most recently from 1db87b8 to 851e42a Compare June 2, 2025 11:55
@eivindj-nordic eivindj-nordic requested review from a team as code owners June 19, 2025 12:29
A second button simulates the Shift button and shows how to modify the letter keystrokes.
An LED displays the Caps Lock state, which can be modified by another connected keyboard. (TODO Match this behaviour from NCS sample)

This sample exposes the HID GATT Service. It uses a report map for a generic keyboard.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This sample exposes the HID GATT Service. It uses a report map for a generic keyboard.
This sample exposes the HID GATT Service.
It uses a report map for a generic keyboard.

The sample uses the buttons on a development kit to simulate keys on a keyboard.
One button simulates the letter keys by generating letter keystrokes for a predefined string.
A second button simulates the Shift button and shows how to modify the letter keystrokes.
An LED displays the Caps Lock state, which can be modified by another connected keyboard. (TODO Match this behaviour from NCS sample)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An LED displays the Caps Lock state, which can be modified by another connected keyboard. (TODO Match this behaviour from NCS sample)
An LED displays the Caps Lock state, which can be modified by another connected keyboard.

This should be removed before merging :)

@eivindj-nordic eivindj-nordic modified the milestones: v0.8.0, v0.9.0 Aug 10, 2025
lemrey and others added 2 commits August 15, 2025 08:39
* Add Bluetooth HID service.
* Add HID keyboard sample.
* Add HID mouse sample.

Co-authored-by: Eivind Jølsgard <[email protected]>
Signed-off-by: Emanuele Di Santo <[email protected]>
Update button features to match NCS sample. Work in progress.

Signed-off-by: Eivind Jølsgard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants