drivers: display: st7789v: set x-offset and y-offset properties properly
This sets the x-offset and y-offset info from the dts Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
This commit is contained in:
parent
de2f2cd14f
commit
eeedc828ae
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ static void st7789v_lcd_init(struct st7789v_data *p_st7789v)
|
|||
{
|
||||
u8_t tmp;
|
||||
|
||||
st7789v_set_lcd_margins(p_st7789v, 0, 0);
|
||||
st7789v_set_lcd_margins(p_st7789v, p_st7789v->x_offset,
|
||||
p_st7789v->y_offset);
|
||||
|
||||
st7789v_transmit(p_st7789v, ST7789V_CMD_CMD2EN, st7789v_cmd2en_param,
|
||||
sizeof(st7789v_cmd2en_param));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue