adafruit-circuitpython-rgb-display 3.12.6__py3-none-any.whl → 3.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adafruit_circuitpython_rgb_display-3.12.6.dist-info → adafruit_circuitpython_rgb_display-3.13.dist-info}/METADATA +2 -2
- adafruit_circuitpython_rgb_display-3.13.dist-info/RECORD +16 -0
- {adafruit_circuitpython_rgb_display-3.12.6.dist-info → adafruit_circuitpython_rgb_display-3.13.dist-info}/WHEEL +1 -1
- adafruit_rgb_display/gc9a01a.py +126 -0
- adafruit_rgb_display/hx8353.py +1 -1
- adafruit_rgb_display/hx8357.py +1 -1
- adafruit_rgb_display/ili9341.py +1 -1
- adafruit_rgb_display/rgb.py +1 -1
- adafruit_rgb_display/s6d02a1.py +1 -1
- adafruit_rgb_display/ssd1331.py +1 -1
- adafruit_rgb_display/ssd1351.py +1 -1
- adafruit_rgb_display/st7735.py +1 -1
- adafruit_rgb_display/st7789.py +1 -1
- adafruit_circuitpython_rgb_display-3.12.6.dist-info/RECORD +0 -15
- {adafruit_circuitpython_rgb_display-3.12.6.dist-info → adafruit_circuitpython_rgb_display-3.13.dist-info}/LICENSE +0 -0
- {adafruit_circuitpython_rgb_display-3.12.6.dist-info → adafruit_circuitpython_rgb_display-3.13.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
adafruit_rgb_display/__init__.py,sha256=4wOEGnSq7Q63i9G8CW4v5Cdc506UgMEwK_dS8xYpJ5k,209
|
2
|
+
adafruit_rgb_display/gc9a01a.py,sha256=dhlyrKxm8QUupuTQXMiI3VUnvpr29NvZCHL_NUbJYms,3625
|
3
|
+
adafruit_rgb_display/hx8353.py,sha256=VDgoDnzs5GYmTSCcsXIhwLPl0FOf1CSGyCEpsVwwA1w,2062
|
4
|
+
adafruit_rgb_display/hx8357.py,sha256=GOaepoLjzxGj3sE6n88snky_44P7aqyzhC1oBlOKdpg,3564
|
5
|
+
adafruit_rgb_display/ili9341.py,sha256=-hSWY1gOPoLydSPnrOucu-qSlraOjU8ccM-sNp_Q4m8,3510
|
6
|
+
adafruit_rgb_display/rgb.py,sha256=86gyiUZSE9SKMxylYIRlyb5RbIdV66khQ-Ta3Uv0TnU,11770
|
7
|
+
adafruit_rgb_display/s6d02a1.py,sha256=CRVzGpxL9DCMY4X_hrlTxax1SfqRq8gsgu2spaWbtLs,2293
|
8
|
+
adafruit_rgb_display/ssd1331.py,sha256=NgD7b4GlhIJD3lCCR7QaBTvcmngq48ZJybbBa2wZhT8,4262
|
9
|
+
adafruit_rgb_display/ssd1351.py,sha256=Q-UJxjc5CbjL0pEIFYjwlX6tyVBQvV2LSIlYc_QA_3Y,3805
|
10
|
+
adafruit_rgb_display/st7735.py,sha256=bmsQvrA_3R-ko-oM5l1uEEGhKz_MDSg3abq36pVxf9U,8455
|
11
|
+
adafruit_rgb_display/st7789.py,sha256=V-hKFVRVn8SOW7p4HJwz6EQBCEKRG2rrWqBUQNL2mCg,3574
|
12
|
+
adafruit_circuitpython_rgb_display-3.13.dist-info/LICENSE,sha256=LgLxmuGT-yzOZ0qYCW63SRPvZjD-WMNrJbkyFM0XVOI,1110
|
13
|
+
adafruit_circuitpython_rgb_display-3.13.dist-info/METADATA,sha256=ptzfDhjQMqsr2F1LSS9aEpTivxbIIsW61T-293NDhVw,6428
|
14
|
+
adafruit_circuitpython_rgb_display-3.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
15
|
+
adafruit_circuitpython_rgb_display-3.13.dist-info/top_level.txt,sha256=cJwF7_bQzYW5T_mcKLceSSUQ99qb2Bmpz7KdRs_O0tA,21
|
16
|
+
adafruit_circuitpython_rgb_display-3.13.dist-info/RECORD,,
|
@@ -0,0 +1,126 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2025 Liz Clark for Adafruit Industries
|
2
|
+
#
|
3
|
+
# SPDX-License-Identifier: MIT
|
4
|
+
"""
|
5
|
+
`adafruit_rgb_display.gc9a01a`
|
6
|
+
====================================================
|
7
|
+
A simple driver for the GC9A01A-based displays.
|
8
|
+
|
9
|
+
* Author(s): Liz Clark
|
10
|
+
|
11
|
+
"""
|
12
|
+
|
13
|
+
import time
|
14
|
+
import busio
|
15
|
+
import digitalio
|
16
|
+
from micropython import const
|
17
|
+
from adafruit_rgb_display.rgb import DisplaySPI
|
18
|
+
|
19
|
+
try:
|
20
|
+
from typing import Optional
|
21
|
+
except ImportError:
|
22
|
+
pass
|
23
|
+
|
24
|
+
__version__ = "3.13"
|
25
|
+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
|
26
|
+
|
27
|
+
# Command constants
|
28
|
+
_SWRESET = const(0xFE)
|
29
|
+
_SLPOUT = const(0x11)
|
30
|
+
_NORON = const(0x13)
|
31
|
+
_INVOFF = const(0x20)
|
32
|
+
_INVON = const(0x21)
|
33
|
+
_DISPOFF = const(0x28)
|
34
|
+
_DISPON = const(0x29)
|
35
|
+
_CASET = const(0x2A)
|
36
|
+
_RASET = const(0x2B)
|
37
|
+
_RAMWR = const(0x2C)
|
38
|
+
_RAMRD = const(0x2E)
|
39
|
+
_MADCTL = const(0x36)
|
40
|
+
_COLMOD = const(0x3A)
|
41
|
+
|
42
|
+
|
43
|
+
class GC9A01A(DisplaySPI):
|
44
|
+
"""
|
45
|
+
A simple driver for the GC9A01A-based displays.
|
46
|
+
|
47
|
+
>>> import busio
|
48
|
+
>>> import digitalio
|
49
|
+
>>> import board
|
50
|
+
>>> from adafruit_rgb_display import gc9a01a
|
51
|
+
>>> spi = busio.SPI(clock=board.SCK, MOSI=board.MOSI, MISO=board.MISO)
|
52
|
+
>>> display = gc9a01a.GC9A01A(spi, cs=digitalio.DigitalInOut(board.CE0),
|
53
|
+
... dc=digitalio.DigitalInOut(board.D25), rst=digitalio.DigitalInOut(board.D27))
|
54
|
+
>>> display.fill(0x7521)
|
55
|
+
>>> display.pixel(64, 64, 0)
|
56
|
+
"""
|
57
|
+
|
58
|
+
_COLUMN_SET = _CASET
|
59
|
+
_PAGE_SET = _RASET
|
60
|
+
_RAM_WRITE = _RAMWR
|
61
|
+
_RAM_READ = _RAMRD
|
62
|
+
_INIT = (
|
63
|
+
(_SWRESET, None),
|
64
|
+
(0xEF, None), # Inter Register Enable2
|
65
|
+
(0xB6, b"\x00\x00"), # Display Function Control
|
66
|
+
(_MADCTL, b"\x48"), # Memory Access Control - Set to BGR color filter panel
|
67
|
+
(_COLMOD, b"\x05"), # Interface Pixel Format - 16 bits per pixel
|
68
|
+
(0xC3, b"\x13"), # Power Control 2
|
69
|
+
(0xC4, b"\x13"), # Power Control 3
|
70
|
+
(0xC9, b"\x22"), # Power Control 4
|
71
|
+
(0xF0, b"\x45\x09\x08\x08\x26\x2a"), # SET_GAMMA1
|
72
|
+
(0xF1, b"\x43\x70\x72\x36\x37\x6f"), # SET_GAMMA2
|
73
|
+
(0xF2, b"\x45\x09\x08\x08\x26\x2a"), # SET_GAMMA3
|
74
|
+
(0xF3, b"\x43\x70\x72\x36\x37\x6f"), # SET_GAMMA4
|
75
|
+
(0x66, b"\x3c\x00\xcd\x67\x45\x45\x10\x00\x00\x00"),
|
76
|
+
(0x67, b"\x00\x3c\x00\x00\x00\x01\x54\x10\x32\x98"),
|
77
|
+
(0x74, b"\x10\x85\x80\x00\x00\x4e\x00"),
|
78
|
+
(0x98, b"\x3e\x07"),
|
79
|
+
(0x35, None), # Tearing Effect Line ON
|
80
|
+
(_INVON, None), # Display Inversion ON
|
81
|
+
(_SLPOUT, None), # Sleep Out Mode
|
82
|
+
(_NORON, None), # Normal Display Mode ON
|
83
|
+
(_DISPON, None), # Display ON
|
84
|
+
)
|
85
|
+
|
86
|
+
# pylint: disable-msg=useless-super-delegation, too-many-arguments
|
87
|
+
def __init__(
|
88
|
+
self,
|
89
|
+
spi: busio.SPI,
|
90
|
+
dc: digitalio.DigitalInOut,
|
91
|
+
cs: digitalio.DigitalInOut,
|
92
|
+
rst: Optional[digitalio.DigitalInOut] = None,
|
93
|
+
width: int = 240,
|
94
|
+
height: int = 240,
|
95
|
+
baudrate: int = 24000000,
|
96
|
+
polarity: int = 0,
|
97
|
+
phase: int = 0,
|
98
|
+
*,
|
99
|
+
x_offset: int = 0,
|
100
|
+
y_offset: int = 0,
|
101
|
+
rotation: int = 0
|
102
|
+
) -> None:
|
103
|
+
super().__init__(
|
104
|
+
spi,
|
105
|
+
dc,
|
106
|
+
cs,
|
107
|
+
rst,
|
108
|
+
width,
|
109
|
+
height,
|
110
|
+
baudrate=baudrate,
|
111
|
+
polarity=polarity,
|
112
|
+
phase=phase,
|
113
|
+
x_offset=x_offset,
|
114
|
+
y_offset=y_offset,
|
115
|
+
rotation=rotation,
|
116
|
+
)
|
117
|
+
|
118
|
+
def init(self) -> None:
|
119
|
+
"""Initialize the display."""
|
120
|
+
if self.rst:
|
121
|
+
self.rst.value = 0
|
122
|
+
time.sleep(0.05)
|
123
|
+
self.rst.value = 1
|
124
|
+
time.sleep(0.05)
|
125
|
+
|
126
|
+
super().init()
|
adafruit_rgb_display/hx8353.py
CHANGED
adafruit_rgb_display/hx8357.py
CHANGED
adafruit_rgb_display/ili9341.py
CHANGED
adafruit_rgb_display/rgb.py
CHANGED
@@ -31,7 +31,7 @@ except ImportError:
|
|
31
31
|
|
32
32
|
from adafruit_bus_device import spi_device
|
33
33
|
|
34
|
-
__version__ = "3.
|
34
|
+
__version__ = "3.13"
|
35
35
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display.git"
|
36
36
|
|
37
37
|
# This is the size of the buffer to be used for fill operations, in 16-bit
|
adafruit_rgb_display/s6d02a1.py
CHANGED
adafruit_rgb_display/ssd1331.py
CHANGED
adafruit_rgb_display/ssd1351.py
CHANGED
adafruit_rgb_display/st7735.py
CHANGED
adafruit_rgb_display/st7789.py
CHANGED
@@ -1,15 +0,0 @@
|
|
1
|
-
adafruit_rgb_display/__init__.py,sha256=4wOEGnSq7Q63i9G8CW4v5Cdc506UgMEwK_dS8xYpJ5k,209
|
2
|
-
adafruit_rgb_display/hx8353.py,sha256=Fn_DMWP3cxp4tP4VYBrbA06ZgdJPfd3CyWSsKs95AIM,2064
|
3
|
-
adafruit_rgb_display/hx8357.py,sha256=_7s3d_fecz-F5bbzCCMmA6fonQ3A56G04eEHp9zC-MY,3566
|
4
|
-
adafruit_rgb_display/ili9341.py,sha256=pejPwIEthPFNtTbRo0Ab2GYvuNeJccCdRmLAEwMnJII,3512
|
5
|
-
adafruit_rgb_display/rgb.py,sha256=m6mRc_jnifYj60PGRi_225dWQ7dlSeQ8tEvnXwfaoEw,11772
|
6
|
-
adafruit_rgb_display/s6d02a1.py,sha256=dzX4oTUqsIFemOT78XsTDPnzku1bFelqprvfdg0h_NE,2295
|
7
|
-
adafruit_rgb_display/ssd1331.py,sha256=D2zb3b84zXQjWGz4-yLJI4LIYQ1OxBsVIbgtulPn57Y,4264
|
8
|
-
adafruit_rgb_display/ssd1351.py,sha256=vubcz1jtYuSHnQow9AkMwasAh-XOk2F0MLGbqWXgJ3g,3807
|
9
|
-
adafruit_rgb_display/st7735.py,sha256=bUntEPEujA_mLBPzDdH2I1L6jyoNFoF35MZlq5wmdfQ,8457
|
10
|
-
adafruit_rgb_display/st7789.py,sha256=GC_cav0cLVEw_TSwneNAYmZQYY9TjLVIL81QOapnU48,3576
|
11
|
-
adafruit_circuitpython_rgb_display-3.12.6.dist-info/LICENSE,sha256=LgLxmuGT-yzOZ0qYCW63SRPvZjD-WMNrJbkyFM0XVOI,1110
|
12
|
-
adafruit_circuitpython_rgb_display-3.12.6.dist-info/METADATA,sha256=znVRHPQ7lNwnsiw_GzCHW4YIhNwEfBhEzIgPacXGPrI,6430
|
13
|
-
adafruit_circuitpython_rgb_display-3.12.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
14
|
-
adafruit_circuitpython_rgb_display-3.12.6.dist-info/top_level.txt,sha256=cJwF7_bQzYW5T_mcKLceSSUQ99qb2Bmpz7KdRs_O0tA,21
|
15
|
-
adafruit_circuitpython_rgb_display-3.12.6.dist-info/RECORD,,
|
File without changes
|