Hi.
Can you tell me the exact name of the file you’re referring to?
Regards,
Sara
On p 61 of the LVGL book, here’s an excerpt from the code referring to logg9ing:
// If logging is enabled, it will inform the user about what is happening in the library
void log_print(lv_log_level_t level, const char * buf) {
LV_UNUSED(level);
Serial.println(buf);
Serial.flush();
}
Thanks,
Steve
Hi.
That function is used for logging purposes in the LVGL library.
When logging is enabled in the LVGL configuration file (see the lv_conf.h configuration file lines of code 212 to 252), the library calls this function to output messages about what’s going on in the background.
Then, in the setup(), with the following line, we indicate that we want to use that function as a callback function for logging LVGL operations.
lv_log_register_print_cb(log_print);
I hope this helps.
Regards,
Sara