I've a "problem" regarding an attempt that I would like to make work.
My goal is to send an image (JPG, PNG, BMP, etc) using the pyserial package of Python from a PC to the Lilygo board and display it.
If feasible, an other request is also to send the image data as a json object. For example something like { "image": [.. .. ..] }. Then the Lilygo should read and parse all the serial string data in order to display the image.
I have difficulties to understand and write Python/Arduino code to let the Lilygo's serial read all the json data, since there is a limit to how many bytes it is possible to send in block.
Of course I've search on websites how to solve this issue, but it is still not clear for me.
Does anyone have a very simple code that make possible to send an image from Python to Lilygo as JSON object?
Hello!
I've a "problem" regarding an attempt that I would like to make work.
My goal is to send an image (JPG, PNG, BMP, etc) using the pyserial package of Python from a PC to the Lilygo board and display it.
If feasible, an other request is also to send the image data as a json object. For example something like { "image": [.. .. ..] }. Then the Lilygo should read and parse all the serial string data in order to display the image.
I have difficulties to understand and write Python/Arduino code to let the Lilygo's serial read all the json data, since there is a limit to how many bytes it is possible to send in block.
Of course I've search on websites how to solve this issue, but it is still not clear for me.
Does anyone have a very simple code that make possible to send an image from Python to Lilygo as JSON object?
Thank you!!