I have seen old examples to refer the buffer to a canvas object like this:
canvas.set_buffer(buf, CANVAS_WIDTH, CANVAS_HEIGHT, lv.img.CF.TRUE_COLOR)
However, I get error: AttributeError: ‘module’ object has no attribute ‘img’
and in REPL:
>>> lv.img.CF.TRUE_COLOR
AttributeError: 'module' object has no attribute 'img'
I suspect that the example I read was from an older LVGL… what would be the correct module member?
I am working with ili9341, so I would need color565