Skip to content

Conversation

@pavlohamov
Copy link
Contributor

Take offset form dt instead of hard code

Signed-off-by: Pavlo Hamov [email protected]

Take offset form dt instead of hard code

Signed-off-by: Pavlo Hamov <[email protected]>
* display is 320x170, and so the effective LCD is offset
* by 35 "rows".
*/
st7789v_set_lcd_margins(p_st7789v, 0, 35);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not make sense, this file is for TL019FQV01 display, everything here is hardcoded, it is not generic. Working on support for Waveshare display, I will remove it and replace with byte arrays in DT.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that it's corner implementation. Are you willing to remove whole file (display_st7789v_tl019fqv01.c)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be moved to display_st7789v.c and should obtain the values from DT. I think we should not have a display_st7789v_xVARIANTx.c per display.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Sincerely, i do not like these display_name_variant.c implementations. Thank you for taking care of this. Closing PR

@pavlohamov pavlohamov closed this Nov 14, 2019
@pavlohamov pavlohamov deleted the st7789_offset branch February 11, 2020 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants