Description
The documentation has wrong signatures for :
lv_keyboard_set_map() (and others)
https://docs.lvgl.io/master/widgets/extra/keyboard.html?highlight=lv_keyboard
Implementation :
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
8.0
What do you want to achieve?
Customize the keyboard widget.
What have you tried so far?
Version 7 behaviour, it is obviously different, but the documentation is misleading.
Code to reproduce
void kb_create(void)
{
this->kb = lv_keyboard_create(lv_scr_act());
const lv_btnmatrix_ctrl_t kb_ctrl[] = {
LV_BTNMATRIX_CTRL_NO_REPEAT
};
const char* map[] = {"1"};
lv_keyboard_set_mode(this->kb,LV_KEYBOARD_MODE_NUMBER);
lv_keyboard_set_map(this->kb, LV_KEYBOARD_MODE_NUMBER, map,kb_ctrl);
}
This leads to a seq fault. Can somebody hint me to a version 8 example on how to customize the keyboard component ? Thanks. (I wanted to post it in the bug section, but it is rather a how-to question).