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

Commit84065f3

Browse files
committed
working on threading and multiprocessing modules
1 parent106f251 commit84065f3

File tree

22 files changed

+894
-871
lines changed

22 files changed

+894
-871
lines changed

‎api_drivers/common_api_drivers/display/st7796/st7796.py‎

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,16 @@
99
BYTE_ORDER_RGB=display_driver_framework.BYTE_ORDER_RGB
1010
BYTE_ORDER_BGR=display_driver_framework.BYTE_ORDER_BGR
1111

12-
_MADCTL_MH=const(0x04)# Refresh 0=Left to Right, 1=Right to Left
13-
_MADCTL_BGR=const(0x08)# BGR color order
14-
_MADCTL_ML=const(0x10)# Refresh 0=Top to Bottom, 1=Bottom to Top
15-
_MADCTL_MV=const(0x20)# 0=Normal, 1=Row/column exchange
16-
_MADCTL_MX=const(0x40)# 0=Left to Right, 1=Right to Left
17-
_MADCTL_MY=const(0x80)# 0=Top to Bottom, 1=Bottom to Top
12+
_MADCTL_MV=const(0x20)
13+
_MADCTL_MX=const(0x40)
14+
_MADCTL_MY=const(0x80)
1815

1916

2017
classST7796(display_driver_framework.DisplayDriver):
21-
# The st7795 display controller has an internal framebuffer
22-
# arranged in 320 x 480
23-
# configuration. Physical displays with pixel sizes less than
24-
# 320 x 480 must supply a start_x and
25-
# start_y argument to indicate where the physical display begins
26-
# relative to the start of the
27-
# display controllers internal framebuffer.
28-
29-
# this display driver supports RGB565 and also RGB666. RGB666 is going to
30-
# use twice as much memory as the RGB565. It is also going to slow down the
31-
# frame rate by 1/3, This is becasue of the extra byte of data that needs
32-
# to get sent. To use RGB666 the color depth MUST be set to 32.
33-
# so when compiling
34-
# make sure to have LV_COLOR_DEPTH=32 set in LVFLAGS when you call make.
35-
# For RGB565 you need to have LV_COLOR_DEPTH=16
36-
37-
# the reason why we use a 32 bit color depth is because of how the data gets
38-
# written. The entire 8 bits for each byte gets sent. The controller simply
39-
# ignores the lowest 2 bits in the byte to make it a 6 bit color channel
40-
# We just have to tell lvgl that we want to use
4118

4219
_ORIENTATION_TABLE= (
43-
0x0,
44-
_MADCTL_MV|_MADCTL_MX,
45-
_MADCTL_MY|_MADCTL_MX,
46-
_MADCTL_MV|_MADCTL_MY
20+
_MADCTL_MX,
21+
_MADCTL_MV|_MADCTL_MY|_MADCTL_MX,
22+
_MADCTL_MY,
23+
_MADCTL_MV
4724
)

‎api_drivers/common_api_drivers/indev/ft6x06.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
BITS=8
99

1010
_FT6206_CHIPID=const(0x06)
11+
_FT6x06_CHIPID=const(0x11)
1112

1213

1314
classFT6x06(focaltech_touch.FocalTechTouch):
@@ -26,5 +27,6 @@ def __init__(
2627
startup_rotation,
2728
debug,
2829
None,
29-
_FT6206_CHIPID
30+
_FT6206_CHIPID,
31+
_FT6x06_CHIPID
3032
)

‎api_drivers/common_api_drivers/indev/ft6x36.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
_FT6x36_CHIPID_1=const(0x36)
1212
_FT6x36_CHIPID_2=const(0x64)
13+
_FT6x36_CHIPID_3=const(0xCD)
1314

1415

1516
classFT6x36(focaltech_touch.FocalTechTouch):
@@ -29,5 +30,6 @@ def __init__(
2930
debug,
3031
None,
3132
_FT6x36_CHIPID_1,
32-
_FT6x36_CHIPID_2
33+
_FT6x36_CHIPID_2,
34+
_FT6x36_CHIPID_3
3335
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp