ILI9486: Make pinouts consistent with PCB.

pull/46/head
peterhinch 2023-01-10 18:21:10 +00:00
rodzic 16ff0db54f
commit 51b590faad
2 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -667,10 +667,10 @@ powered from 5V or 3.3V: there is a regulator on board.
| | | 12 | 11 | | |
| | | 14 | 13 | | |
| | | 16 | 15 | | |
| 17 | DC | 18 | 17 | | |
| | | 20 | 19 | MOSI | 3 |
| 7 | RST | 22 | 21 | | |
| 14 | CS | 24 | 23 | SCLK | 6 |
| 8 | DC | 18 | 17 | | |
| | | 20 | 19 | MOSI | 7 |
| 9 | RST | 22 | 21 | | |
| 10 | CS | 24 | 23 | SCLK | 6 |
| | | 25 | 26 | | |
#### ILI9486 Constructor args:

Wyświetl plik

@ -10,9 +10,9 @@ import gc
from drivers.ili94xx.ili9486 import ILI9486 as SSD
pdc = Pin(17, Pin.OUT, value=0)
pcs = Pin(14, Pin.OUT, value=1)
prst = Pin(7, Pin.OUT, value=1)
spi = SPI(0, sck=Pin(6), mosi=Pin(3), miso=Pin(4), baudrate=30_000_000)
pdc = Pin(8, Pin.OUT, value=0)
pcs = Pin(9, Pin.OUT, value=1)
prst = Pin(10, Pin.OUT, value=1)
spi = SPI(0, sck=Pin(6), mosi=Pin(7), miso=Pin(4), baudrate=30_000_000)
gc.collect() # Precaution before instantiating framebuf
ssd = SSD(spi, pcs, pdc, prst)