What MCU/Processor/Board and compiler are you using?
STM32F7DISC
What LVGL version are you using?
v8
What do you want to achieve?
Create a meter
What have you tried so far?
I’ve tried creating a meter in micropython. However I’m not seeing how to use/reference lv.pallette_main with a value like LV_PALETTE_GREY
Code to reproduce
meter.set_size(200, 200)
meter.align(lv.ALIGN.TOP_RIGHT, -40, 15)
scale = self.meter.add_scale()
meter.set_scale_major_ticks(meter, scale, 42, 2, 10, lv.palette_main(LV_PALETTE_GREY))
Error messeage:
- NameError: name ‘LV_PALETTE_GREY’ isn’t defined