Table errore in aggiornamento celle #898
Unanswered
paolodecaro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Buonasera ho creato una tabella con EEZ Studio come da indicazioni di MVLADICO, la visualizza con il mio crowpanel da 7". Adesso ho provato a cambiare il valore a delle celle con delle costanti con la premuta di un bottone. Ma in compilazione ottengo questo errore. La tabella viene già definita nel file ui.c
Questo è il codice arduino
static void bottone_cambia_valore_event_handler(lv_event_t * e) {
lv_event_code_t code = lv_event_get_code(e); //--> Get the event code.
lv_obj_t * target_button =
(lv_obj_t*) lv_event_get_target(e); //--> Switch that generated the event.
if (code == LV_EVENT_VALUE_CHANGED) {
LV_UNUSED(target_button);
if (checked_on == true) {
lv_table_set_cell_value(table, 1, 1, "PAOLO");
lv_table_set_cell_value(table, 2, 1, "ROSA");
Ecco errore che ricevo in compilazione :
F:\CROWNPANEL7_NUOVO_TUTORIAL\Paolo_EEZ_Progetto_Temperatura\Paolo_EEZ_Progetto_Temperatura.ino: In function 'void bottone_cambia_valore_event_handler(lv_event_t*)':
F:\CROWNPANEL7_NUOVO_TUTORIAL\Paolo_EEZ_Progetto_Temperatura\Paolo_EEZ_Progetto_Temperatura.ino:210:29: error: 'table' was not declared in this scope
210 | lv_table_set_cell_value(table, 1, 1, "PAOLO");
| ^~~~~
exit status 1
Compilation error: 'table' was not declared in this scope
Beta Was this translation helpful? Give feedback.
All reactions