kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
ST7789 doc improved.
rodzic
97b86d0e5f
commit
7bd781033b
17
DRIVERS.md
17
DRIVERS.md
|
@ -325,8 +325,8 @@ soft SPI may be used but hard may be faster. See note on overclocking below.
|
||||||
case, `color_setup.py` initialises it and the settings will be left in place.
|
case, `color_setup.py` initialises it and the settings will be left in place.
|
||||||
If the bus is shared with devices which require different settings, a callback
|
If the bus is shared with devices which require different settings, a callback
|
||||||
function should be passed. It will be called prior to each SPI bus write. The
|
function should be passed. It will be called prior to each SPI bus write. The
|
||||||
callback will receive a single arg being the SPI bus instance. It will
|
callback will receive a single arg being the SPI bus instance. It will
|
||||||
typically be a one-liner or lambda initialising the bus. A minimal example is
|
typically be a one-liner or lambda initialising the bus. A minimal example is
|
||||||
this function:
|
this function:
|
||||||
```python
|
```python
|
||||||
def spi_init(spi):
|
def spi_init(spi):
|
||||||
|
@ -383,7 +383,9 @@ These displays tend to be physically small with a high pixel density. The chip
|
||||||
supports up to 240x320 displays. The Adafruit units tested are 240x240. To keep
|
supports up to 240x320 displays. The Adafruit units tested are 240x240. To keep
|
||||||
the buffer size down, the driver uses 4-bit color with dynamic conversion to 16
|
the buffer size down, the driver uses 4-bit color with dynamic conversion to 16
|
||||||
bit RGB565 at runtime. This uses a lookup table (LUT) enabling user defined
|
bit RGB565 at runtime. This uses a lookup table (LUT) enabling user defined
|
||||||
colors. The resultant buffer size for the Adafruit displays is 28800 bytes.
|
colors. The resultant buffer size for the Adafruit displays is 28800 bytes. See
|
||||||
|
[Color handling](./DRIVERS.md#11-color-handling) for the implications of 4-bit
|
||||||
|
color.
|
||||||
|
|
||||||
[Tested display](https://www.adafruit.com/product/4313). The Adafruit
|
[Tested display](https://www.adafruit.com/product/4313). The Adafruit
|
||||||
[1.54 inch](https://www.adafruit.com/product/3787) has identical resolution and
|
[1.54 inch](https://www.adafruit.com/product/3787) has identical resolution and
|
||||||
|
@ -412,8 +414,8 @@ below.
|
||||||
case, `color_setup.py` initialises it and the settings will be left in place.
|
case, `color_setup.py` initialises it and the settings will be left in place.
|
||||||
If the bus is shared with devices which require different settings, a callback
|
If the bus is shared with devices which require different settings, a callback
|
||||||
function should be passed. It will be called prior to each SPI bus write. The
|
function should be passed. It will be called prior to each SPI bus write. The
|
||||||
callback will receive a single arg being the SPI bus instance. It will
|
callback will receive a single arg being the SPI bus instance. It will
|
||||||
typically be a one-liner or lambda initialising the bus. A minimal example is
|
typically be a one-liner or lambda initialising the bus. A minimal example is
|
||||||
this function:
|
this function:
|
||||||
```python
|
```python
|
||||||
def spi_init(spi):
|
def spi_init(spi):
|
||||||
|
@ -449,6 +451,11 @@ On Adafruit displays, combinations that don't produce mirror images are:
|
||||||
3. `PORTRAIT | REFLECT` Portrait mode (rotate 90° CCW).
|
3. `PORTRAIT | REFLECT` Portrait mode (rotate 90° CCW).
|
||||||
4. `PORTRAIT | USD` Upside down portrait (rotate 90° CW).
|
4. `PORTRAIT | USD` Upside down portrait (rotate 90° CW).
|
||||||
|
|
||||||
|
#### Use with uasyncio
|
||||||
|
|
||||||
|
Running the SPI bus at 60MHz a refresh blocks for 83ms. Considering whether to
|
||||||
|
offer a solution as per ili9341.
|
||||||
|
|
||||||
###### [Contents](./DRIVERS.md#contents)
|
###### [Contents](./DRIVERS.md#contents)
|
||||||
|
|
||||||
# 4. Drivers for sharp displays
|
# 4. Drivers for sharp displays
|
||||||
|
|
Ładowanie…
Reference in New Issue