Specifying built-in colors

Is there a way in the MicroPython binding to specify a lvgl built-in color such as LV_COLOR_LIME or LV_COLOR_MAGENTA?

At the moment, I define colors using one of two methods:

lv.color_hex(0xff0000)
or
lv.color_make(0xFF, 0xA5, 0x00)

thanks!

Hi @miketeachman!
There were some discussions over this in the past. The issue is that lvgl micropython binding script parses the C headers after preprocessing, so defines are not accessible for it in general.

At the moment the way you define colors is fine.
Another option is to add a micropython module that manually defines colors, and put it under lv_binding_micropython/lib/, if it’s important.

thanks @amirgon. It’s not important to have this capability, I was just wondering if I was missing something obvious.