Description
i just made a custom button matrix that seems to cause resetting of the esp32.
What MCU/Processor/Board and compiler are you using?
esp32 dev module
What do you experience?
there are times when i press on the matrix i notice that the hardware is resetting. idk if its the pressure or dragging from the btnm but it frequently happens
What do you expect?
Code to reproduce
Add a code snippet to reproduce the issue in the simulator. It should contain only the relevant code which can be compiled. Bug reports without code snippets or with erroneous code snippets will not be reviewed.
static const char * btnmJob_map[]= {LV_SYMBOL_PLAY, "\n", LV_SYMBOL_PAUSE, LV_SYMBOL_STOP, ""};
lv_obj_t *btnmJobControl = lv_btnm_create(tab1,NULL);
lv_btnm_set_map (btnmJobControl, btnmJob_map);
lv_obj_set_size(btnmJobControl,100,100);
lv_obj_align(btnmJobControl, NULL, LV_ALIGN_CENTER, 180,-87);
static const char * btnmKB_map[]= {"1","2","3","\n",
"4","5","6","\n",
"7","8","9","\n",
"0"," ","\n",
"X","Y","Z","\n",
"G","M","F","\n",
"Send",""};
lv_obj_t *btnmKB = lv_btnm_create(tab1,NULL);
lv_btnm_set_map (btnmKB, btnmKB_map);
lv_obj_set_size(btnmKB,100,240);
lv_obj_align(btnmKB, NULL, LV_ALIGN_CENTER, -180,16);
lv_obj_set_event_cb(btnmKB, [](lv_obj_t *obj, lv_event_t event) {
if (event == LV_EVENT_CLICKED) {
const char* txt = lv_btnm_get_active_btn_text(obj);
printf("%s was pressed\n", txt);
//send text to text area taGC
//lv_ta_set_text(taGC, txt);
}
});
lv_obj_t *taGC = lv_ta_create(tab1, NULL);
lv_obj_set_size(taGC, 250,28);
lv_obj_align(taGC, NULL, LV_ALIGN_CENTER, 0, -90);
lv_ta_set_text(taGC, "");
Screenshot and/or videoPreformatted text
[“https://drive.google.com/file/d/1SpctLxkFPmqeivuJQwjagaqvZYcqP2vu/preview” width=“640” height=“480”](“https://drive.google.com/file/d/1SpctLxkFPmqeivuJQwjagaqvZYcqP2vu/preview” width=“640” height=“480”)