USB device-mode support (#613)

This commit is contained in:
Shadowtrance
2026-08-13 05:29:35 +10:00
committed by GitHub
parent 37c507544b
commit cc8be3faef
94 changed files with 3466 additions and 399 deletions
@@ -68,6 +68,16 @@ lv_obj_t* lvgl_toolbar_add_text_button_action(lv_obj_t* obj, const char* text, l
*/
lv_obj_t* lvgl_toolbar_add_switch_action(lv_obj_t* obj);
/**
* Create and add a dropdown to the toolbar actions.
* @param[in] obj the toolbar instance
* @param[in] options newline-separated dropdown options
* @param[in] width the dropdown's width in pixels, or 0 to leave LVGL's default dropdown width
* @param[in] text fixed text to show instead of the selected option or NULL to show the selected option as usual
* @return an instance created by lv_dropdown_create()
*/
lv_obj_t* lvgl_toolbar_add_dropdown_action(lv_obj_t* obj, const char* options, lv_coord_t width, const char* text);
/**
* Create and add a spinner to the toolbar actions.
* @param[in] obj the toolbar instance