Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e9a74c

Browse files
committed
updates branch
1 parent18f4f5f commit2e9a74c

File tree

10 files changed

+960
-542
lines changed

10 files changed

+960
-542
lines changed

‎api_drivers/common_api_drivers/display/ili9341/ili9341.py‎

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,5 @@
99
BYTE_ORDER_BGR=display_driver_framework.BYTE_ORDER_BGR
1010

1111

12-
classRGBDisplay(display_driver_framework.DisplayDriver):
13-
14-
definit(self):
15-
self._disp_drv.sw_rotate=1
16-
display_driver_framework.DisplayDriver.init(self)
17-
18-
def_dummy_set_memory_location(self,*_,**__):
19-
return-1
20-
21-
def_flush_cb(self,_,area,color_p):
22-
x1=area.x1+self._offset_x
23-
x2=area.x2+self._offset_x
24-
25-
y1=area.y1+self._offset_y
26-
y2=area.y2+self._offset_y
27-
28-
size= (
29-
(x2-x1+1)*
30-
(y2-y1+1)*
31-
lv.color_format_get_size(self._color_space)
32-
)
33-
34-
# we have to use the __dereference__ method because this method is
35-
# what converts from the C_Array object the binding passes into a
36-
# memoryview object that can be passed to the bus drivers
37-
data_view=color_p.__dereference__(size)
38-
39-
self._data_bus.tx_color(
40-
-1,data_view,x1,y1,x2,y2,
41-
rotation=self._rotation,
42-
last_flush=self._disp_drv.flush_is_last()
43-
)
12+
classili9341(display_driver_framework.DisplayDriver):
13+
pass

‎api_drivers/common_api_drivers/display/ra8876/_ra8876_init.py‎

Whitespace-only changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp