Skip to content

Commit

Permalink
Update factory example
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Nov 22, 2023
1 parent b5bdacb commit 9c6c28f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/Factory/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ void createBrightnessUI(lv_obj_t *parent)
lv_msg_subsribe_obj(TEMPERATURE_MSG_ID, label, NULL);

// Added temperture change message cb
lv_obj_add_event_cb( label, [](lv_event_t *e) {
lv_obj_t *label = (lv_obj_t *)lv_event_get_target(e);
lv_label_set_text_fmt(label, "Temperature:%.2f°C", amoled.readCoreTemp());
}, LV_EVENT_MSG_RECEIVED, NULL);
// TODO:Need fix
// lv_obj_add_event_cb( label, [](lv_event_t *e) {
// lv_obj_t *label = (lv_obj_t *)lv_event_get_target(e);
// lv_label_set_text_fmt(label, "Temperature:%.2f°C", amoled.readCoreTemp());
// }, LV_EVENT_MSG_RECEIVED, NULL);


//SDCard
Expand Down

0 comments on commit 9c6c28f

Please sign in to comment.