cbm80amiga / ST7789_AVR

Fast SPI library for the ST7789 IPS display optimized for AVR Arduinos
GNU General Public License v3.0
20 stars 1 forks source link

Addition of new supported displays and new artificial horizons #3

Closed brightproject closed 2 months ago

brightproject commented 2 months ago

Hello @cbm80amiga I am interested in the topic of artificial horizons, when you announced a fast artificial horizon, I became interested in trying it on a larger screen, for example 240x320 on the controller ILI9341 The example is available in the simulator, I also want to try it on real hardware.

https://wokwi.com/projects/406585521751027713

I managed to use your library for this display. But isolated artifacts are confusing, maybe this is a discrepancy with the original display size for which you wrote the code?

Скриншот 18-08-2024 22 37 28

Perhaps you will be interested in other artificial horizons that I periodically find and improve.

https://wokwi.com/projects/406500228582797313 https://wokwi.com/projects/406507609488531457

https://github.com/Bodmer/TFT_eSPI/assets/1788098/42e47b1b-0d4a-4be8-bfde-b1f82b53999e

https://wokwi.com/projects/374062283976666113

and one interesting code, still in static form.

https://wokwi.com/projects/375745332267555841

It would be great if you optimized and improved some of them for displays ILI9341, SSD1306 or ST7701. I would be glad to have an interesting discussion.

cbm80amiga commented 2 months ago

Unfortunately AVR Arduinos are too slow for more complex graphics rendered in real-time And no actual frame buffer in MCU's RAM doesn't help too :) Regarding your issues it seems to be simple - SCR_HT and SCT_WD should be the same and not greater than 255 because all buffers use 8-bit data. This demo is rather limited to square screens or at least square part of the display can be used.