Datasheet

hid_keyboard (https://adafru.it/vb8): This example will simulate an HID keyboard, waiting for data to arrive via the
nRF52's serial port (via USB serial), and send that data over the air to the bonded Central device.
hid_mouse (https://adafru.it/vb9): This example will simulate an HID mouse. To use it run the sketch and open the
Serial Monitor, then enter the appropriate characters to move the mouse or trigger/release the mouse buttons.
Bonding HID Devices
In order to use your HID mouse or keyboard, you will first need to bond the two devices. The bonding process involves
the following steps:
The two devices will connect to each other normally
A set of security keys are exchanged between the two devices, and stores in non-volatile memory on each side.
This is to ensure that each side is reasonably confident it is talking to the device it thinks it is for future
connections, and to encrypt over the air communication between the devices (so that people can 'sniff' your
keyboard data, etc.).
On the nRF52 side this key data will be stored in a section of flash memory reserved for this purpose using an
internal file system.
The process of storing these security keys is referred to as bonding, and allows bonded devices to securely
communicate without user interaction in the future.
To cancel the bonding agreement, you can simply delete the keys on the nRF52 via the
clearbonds (https://adafru.it/vba) sketch, or delete the bonding data on your mobile device of computer.
Setting up your Bluefruit device for bonding
To bond an device, run an appropriate HID sketch on the nRF52 to emulate either an HID mouse or an HID keyboard.
In the event that you use the HID mouse example you may need to open the Serial Monitor to use it.
In this example we'll run the hid_keyboard example sketch, flashing it to the nRF52, which should give you the
following results:
If you run into any bonding problems, try running the clearbonds sketch to remove and old bonding data from
local non-volatile memory!
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 143 of 175