almindor / mipidsi

MIPI Display Serial Interface unified driver
MIT License
108 stars 46 forks source link

keep MADCTL value to use with orientation changes #14

Closed almindor closed 2 years ago

almindor commented 2 years ago

Keeps MADCTL value from model init and uses it with orientation writes to keep the color and other definitions.

Should fix #7 and #8 and enable a fix for #10

I've also switched to pure static dispatch for all cases with WriteOnlyDataCommand

brianmay commented 2 years ago

I see nothing here that will fix #7 or #8. And fix for #10 still requires some way of setting the madctl value which looks like it is still hard coded per each driver. But good step in correct direction.

almindor commented 2 years ago

I see nothing here that will fix #7 or #8. And fix for #10 still requires some way of setting the madctl value which looks like it is still hard coded per each driver. But good step in correct direction.

Correct. I'll check #9 for the orientation fix once it's rebased.

I'll make a new change for exposing the color inversion once we confirm it works with this fixed.