Sorry, I’m not sure I understand
This is what I had:
if(strcmp("green", json_object_get_string(colour_struct)) == 0)
{
outCol = LV_TABLE_PART_CELL3;
}
if(strcmp("red", json_object_get_string(colour_struct)) == 0)
{
outCol = LV_TABLE_PART_CELL2;
}
if(strcmp("blue", json_object_get_string(colour_struct)) == 0)
{
outCol = LV_TABLE_PART_CELL4;
}
lv_table_set_cell_type(sensorTable, arraypos, 1, outCol);
I’m not sure how that fits. Can you expand?
Thanks!
Alex