Weird issue with lvgl labels

I have some code to print the temperature of all the motors on the brain screen using PROS, but the first two labels are on top of each other. The rest of the labels are all fine. Here is a link to the github repo: https://github.com/2112A-code-team/ogegiog-Code. Here is a picture of the issue:


The drive lb and drive rb labels are on top of each other, all the the other labels look fine. The motor_temp.cpp file is responsible for printing everything to the brain.

I guess one of the by products of however lvgl (5.3) is doing alignment. A workaround for now would be to shift them all down by 20.

lv_obj_align(labels[i], NULL, LV_ALIGN_IN_TOP_LEFT, 10, 20 * i + 20);
2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.