Skip to content

Commit dc5bb8f

Browse files
authored
fix(display): fix lv_disp_ function names (lvgl#324)
1 parent b0561b8 commit dc5bb8f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

driver/generic/st77xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def __init__(self,doublebuffer=True,factor=4):
464464
draw_buf2 = lv.draw_buf_create(self.width, self.height // factor, color_format, 0) if doublebuffer else None
465465

466466
# attach all to self to avoid objects' refcount dropping to zero when the scope is exited
467-
self.disp_drv = lv.disp_create(self.width, self.height)
467+
self.disp_drv = lv.display_create(self.width, self.height)
468468
self.disp_drv.set_color_format(color_format)
469469
self.disp_drv.set_draw_buffers(draw_buf1, draw_buf2)
470470
self.disp_drv.set_render_mode(lv.DISPLAY_RENDER_MODE.PARTIAL)

examples/custom_widget_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def draw(self, obj, layer):
132132
class CustomWidget():
133133

134134
# An instance of a widget-class to be used for creating custom widgets
135-
# d = lv.disp_get_default()
135+
# d = lv.display_get_default()
136136
dpi = 130 # d.get_dpi()
137137
cls = CustomWidgetClass(dpi, dpi)
138138

examples/example1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def init_gui_stm32(self):
4848
buf1 = lcd.framebuffer(1)
4949
buf2 = lcd.framebuffer(2)
5050

51-
self.disp_drv = lv.disp_create(hres, vres)
51+
self.disp_drv = lv.display_create(hres, vres)
5252
self.disp_drv.set_flush_cb(lcd.flush)
5353
self.disp_drv.set_color_format(color_format)
5454
self.disp_drv.set_buffers(buf1, buf2, len(buf1), lv.DISPLAY_RENDER_MODE.PARTIAL)

examples/example3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
buf1 = lcd.framebuffer(1)
2020
buf2 = lcd.framebuffer(2)
2121

22-
disp_drv = lv.disp_create(hres, vres)
22+
disp_drv = lv.display_create(hres, vres)
2323
disp_drv.set_flush_cb(lcd.flush)
2424
disp_drv.set_color_format(color_format)
2525
disp_drv.set_buffers(buf1, buf2, len(buf1), lv.DISPLAY_RENDER_MODE.PARTIAL)

0 commit comments

Comments
 (0)