iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔖
Connecting Seeed Studio XIAO nRF52840 as a BLE Keyboard
Background
Since I confirmed that I could read BME280 data last time, I will try a BLE connection this time.
Equipment
Testing BLE Keyboard Recognition for XIAO
I will proceed according to the official Seeed website.
Downloading ArduinoBLE

Open the Adafruit Bluefruit nRF52 Libraries -> Peripheral -> blehid_keyboard sample and upload it.

Launch the serial monitor.

When you launch LightBlue (for iPhone), "XIAO nRF52840 S" is displayed (the "S" probably stands for Sense).
Note that it won't be displayed unless you launch the serial monitor.

Select "XIAO nRF52840 S" and pair it. This will make the XIAO recognized as a keyboard.

Open the Notes app on your iPhone and type characters from the PC's serial monitor; the characters will then be entered into the Notes app.



Discussion