Skip to content

Commit f02759a

Browse files
committed
Adds rotation to SDL driver
1 parent a326935 commit f02759a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext_mod/lcd_bus/sdl_bus/sdl_bus.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include "py/objarray.h"
1616
#include "py/binary.h"
1717

18+
#include "rotate.h"
19+
1820
// mp_printf(&mp_plat_print, "incomming event %d\n", event->type);
1921

2022
#ifdef MP_PORT_UNIX
@@ -93,12 +95,14 @@
9395
}
9496

9597

96-
mp_lcd_err_t sdl_tx_param(mp_obj_t obj, int lcd_cmd, void *param, size_t param_size)
98+
mp_lcd_err_t sdl_tx_param(mp_obj_t obj, int lcd_cmd, void *param, size_t param_size, bool is_flush, bool last_flush_cmd)
9799
{
98100
LCD_UNUSED(obj);
99101
LCD_UNUSED(lcd_cmd);
100102
LCD_UNUSED(param);
101103
LCD_UNUSED(param_size);
104+
LCD_UNUSED(is_flush);
105+
LCD_UNUSED(last_flush_cmd);
102106
return LCD_OK;
103107
}
104108

@@ -360,7 +364,7 @@
360364
if (args[ARG_buf_num].u_int == 1) {
361365
self->view1->items = m_realloc(self->view1->items, size);
362366
memset(self->view1->items, 0x00, size);
363-
self->view1->len = size
367+
self->view1->len = size;
364368
return MP_OBJ_FROM_PTR(self->view1);
365369
} else if (self->view2 != NULL) {
366370
self->view2->items = m_realloc(self->view2->items, size);

0 commit comments

Comments
 (0)