Replies: 1 comment
-
It's doesn't come out of "nowhere". The mechanics are all behind the scenes and not out in plain view. There are 2 pieces needed to get a display to work. The first one is the bus.the bus is the physical connection from the display to the MCU. This is typically I8080, SPI or RGB. There are others but at the moment that is what this binding supports. Those are also the most common ones used for DIY'ers. The bus drivers are written in C code and they are written in a manner where the functions have the same API . There is a reason why this is important and I will explain in a little bit. The second part is the driver IC for the display. This IC is responsible for communicating with the MCU and for sending data to the raw display. There are many different driver ICs available. I have included the software portion of the driver IC's for the most commonly used ones. The reason why it is important for the functions to be the same across the different busses is because a driver IC might support more than one type of bus. It can only use one at a time but there is the option there to choose which one is going to be used. Because of the the software that handles the display needs to have zero knowledge of what kind of bus is being used, it is only going to make the code more complex if things are different between the different busses. The software that handles the driver ICs is written in Python.
That all depends on the MCU being used.
boot.py would be used for things like setting up the WiFi or Bluetooth. The main.py is where you put all of the application code including the code needed to set up the display. The reason why is because of how micropython works and being able to flash the MCU and also with uploading files.
good question
Squareline Studio is the only one that I am aware of. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm relatively new to lvgl (well.. that's a lie. Just doing my first project) and have some questions about concepts behind lvgl and especially the mp binding.. Maybe discussing them here helps me- and others, too
This is a multi-question-thread - sorry for that..
Beta Was this translation helpful? Give feedback.
All reactions