olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

ili9341 get cropped with m5stack esp32 module #100

Open pastukhov opened 5 years ago

pastukhov commented 5 years ago

Hi all! I'm trying to get working ucglib with m5stack module that included ili9341 screen and get output cropped by 240x240 pixels image I'm doing init with Ucglib_ILI9341_18x240x320_HWSPI ucg(/*cd=*/ 27, /*cs=*/ 14, /*reset=*/ 33); Any advice?

AnHardt commented 5 years ago

Rotate 90°. 240x320 != 320x240

pastukhov commented 5 years ago

Same, but rotated. image

f4grx commented 2 years ago

ucg does not work with m5stack. I did research and got it working.

I did that by adding a new display variant for the ili9341, rotation is not enough.

f4grx commented 2 years ago

Here is my branch with proper support. it is not against this repository but against the _arduino version.

https://github.com/f4grx/Ucglib_Arduino/tree/m5stack/

f4grx commented 2 years ago

In fact there is even a pull request since january but it was not merged yet :(

https://github.com/olikraus/Ucglib_Arduino/pull/23