template | thumbnail |
---|---|
true |
./thumbnail.png |
This lets your ESP32 act as a keyboard communicating with your PC or phone through Bluetooth Low Energy (BLE)
- an ESP32 dev board
-
the ESP32 related toolkit, click here to see how to install it.
-
the BLE_Keyboard library which you can't find with Arduino's Library Manager. To do this, download the ESP32-BLE-Keyboard and unzip it in your libraries folder. To know where your libraries folder is located you can go into
File > Preferences...
and look for "sketchbook location".
Assuming everything listed above is installed properly you can upload the code onto your ESP32 as usual.
On slightly larger code than the example it has been observed that connecting is not straight forward. On a bigger project I have to
- unpair the ESP32
- pair it again
- wait for Windows to recognize it as a keyboard
- wait for it to disconnect then reconnect (usually takes about 30 seconds)
- then it works.
It is tedious, but it has the merit of being a stable way of proceeding.
The link above to get the library brings you to the latest stable release, which we recommend, however there might be beta versions on the release page if you want to try them.
Honestly the code is really simple, just look at it.
A very good website with ESP32 related tutorials : https://randomnerdtutorials.com/