pico-examples
pico-examples copied to clipboard
Trying to get the HID Mouse LE example to work on picow using Arduino IDE
The example listed in the README just redirects to the btstack repository picow_bt_example_hog_mouse_demo which is missing the header file "hog_mouse_demo.h", and the demo file here is just one line in a CMakeLists.txt file?
I have absolutely no idea where to start with either of these repositories to get this example working in the arduino IDE. Could someone please point me in the right direction? Thanks
It builds fine for me on the pico-sdk command line. That one line is a cmake function which "does the right thing" hopefully. The examples are all in the btstack code in the pico-sdk (so pico-examples includes them from the pico-sdk. The header file hog_mouse_demo.h is generated at build time from a btstack/example/hog_mouse_demo.gatt with a python script.
Questions about getting things working with the Arduino IDE are probably best asked on the Arduino forums or at https://forums.raspberrypi.com/viewforum.php?f=143
There was topic, and I've put standalone version ot BT example layout file. Here for the mouse: mouse.zip. You can change BTStack example files there .c
and .gatt
for BLE and make corresponding file names changes in CMakeLists.txt
(plus adding pico_btstack_classic
for BT Classic examples). Forum topic: https://forums.raspberrypi.com/viewtopic.php?t=347395.
I have no idea how to integrate it with Arduino, but I guess BLE HID support for Arduino is on its way: https://github.com/earlephilhower/arduino-pico/issues/1506.