kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
Doc improvements.
rodzic
6037a1d9e3
commit
1b9c6d34d1
|
@ -70,6 +70,8 @@ application which uses the predefined colors. Differences become apparent when
|
||||||
specifying custom colors. For detail see the main README
|
specifying custom colors. For detail see the main README
|
||||||
[User defined colors](./README.md#311-user-defined-colors).
|
[User defined colors](./README.md#311-user-defined-colors).
|
||||||
|
|
||||||
|
###### [Contents](./DRIVERS.md#contents)
|
||||||
|
|
||||||
# 2. Drivers for SSD1351
|
# 2. Drivers for SSD1351
|
||||||
|
|
||||||
See [Adafruit 1.5" 128*128 OLED display](https://www.adafruit.com/product/1431)
|
See [Adafruit 1.5" 128*128 OLED display](https://www.adafruit.com/product/1431)
|
||||||
|
@ -185,6 +187,8 @@ def spi_init(spi):
|
||||||
spi.init(baudrate=6_666_000) # Data sheet: max is 150ns
|
spi.init(baudrate=6_666_000) # Data sheet: max is 150ns
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### [Contents](./DRIVERS.md#contents)
|
||||||
|
|
||||||
# 4. Drivers for ST7735R
|
# 4. Drivers for ST7735R
|
||||||
|
|
||||||
These are cross-platform but assume `micropython.viper` capability. They use
|
These are cross-platform but assume `micropython.viper` capability. They use
|
||||||
|
@ -227,6 +231,8 @@ def spi_init(spi):
|
||||||
spi.init(baudrate=12_000_000) # Data sheet: max is 12MHz
|
spi.init(baudrate=12_000_000) # Data sheet: max is 12MHz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### [Contents](./DRIVERS.md#contents)
|
||||||
|
|
||||||
# 5. Drivers for ILI9341
|
# 5. Drivers for ILI9341
|
||||||
|
|
||||||
Adafruit make several displays using this chip, for example
|
Adafruit make several displays using this chip, for example
|
||||||
|
@ -516,6 +522,9 @@ value to 16 bits. In the case of 4-bit drivers the LUT is 16 bits in size, and
|
||||||
bit value in a format compatible with the hardware and the byte order of the
|
bit value in a format compatible with the hardware and the byte order of the
|
||||||
"on the fly" conversion code.
|
"on the fly" conversion code.
|
||||||
|
|
||||||
|
The convention I use is that the LS byte from `.rgb()` is transmitted first. So
|
||||||
|
long as `.rgb()` and the "on the fly" converter match, this is arbitrary.
|
||||||
|
|
||||||
The `Writer` (monochrome) or `CWriter` (color) classes and the `nanogui` module
|
The `Writer` (monochrome) or `CWriter` (color) classes and the `nanogui` module
|
||||||
should then work automatically.
|
should then work automatically.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue