BlueMicro_BLE Coding Live - Refactoring USB

preview_player
Показать описание
In this livestream, I start the refactoring of the BlueMicro_BLE USB functions.

I start with the hid_composite example from the TinyUSB library.
Goal is to create a class that could be moved from the example and inserted into the firmware. Ultimate goal is to have this class handle both USB and BLE as well as mode switching so that it could simplify the firmware main file.

Throughout the stream I struggle with the code compiling but ultimately not working on the Feather nRF52840 Express. Using this board allows me to keep it as close to what Adafruit has published so that if I encounter an issue, I can file it and they can help with hardware they have access to.

In the end, I succeed moving the code, unfortunately it's not in a class library but just in a bunch of functions segregated into a separate file.
Рекомендации по теме