kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
ILI9486: Make pinouts consistent with PCB.
rodzic
16ff0db54f
commit
51b590faad
|
@ -667,10 +667,10 @@ powered from 5V or 3.3V: there is a regulator on board.
|
||||||
| | | 12 | 11 | | |
|
| | | 12 | 11 | | |
|
||||||
| | | 14 | 13 | | |
|
| | | 14 | 13 | | |
|
||||||
| | | 16 | 15 | | |
|
| | | 16 | 15 | | |
|
||||||
| 17 | DC | 18 | 17 | | |
|
| 8 | DC | 18 | 17 | | |
|
||||||
| | | 20 | 19 | MOSI | 3 |
|
| | | 20 | 19 | MOSI | 7 |
|
||||||
| 7 | RST | 22 | 21 | | |
|
| 9 | RST | 22 | 21 | | |
|
||||||
| 14 | CS | 24 | 23 | SCLK | 6 |
|
| 10 | CS | 24 | 23 | SCLK | 6 |
|
||||||
| | | 25 | 26 | | |
|
| | | 25 | 26 | | |
|
||||||
|
|
||||||
#### ILI9486 Constructor args:
|
#### ILI9486 Constructor args:
|
||||||
|
|
|
@ -10,9 +10,9 @@ import gc
|
||||||
|
|
||||||
from drivers.ili94xx.ili9486 import ILI9486 as SSD
|
from drivers.ili94xx.ili9486 import ILI9486 as SSD
|
||||||
|
|
||||||
pdc = Pin(17, Pin.OUT, value=0)
|
pdc = Pin(8, Pin.OUT, value=0)
|
||||||
pcs = Pin(14, Pin.OUT, value=1)
|
pcs = Pin(9, Pin.OUT, value=1)
|
||||||
prst = Pin(7, Pin.OUT, value=1)
|
prst = Pin(10, Pin.OUT, value=1)
|
||||||
spi = SPI(0, sck=Pin(6), mosi=Pin(3), miso=Pin(4), baudrate=30_000_000)
|
spi = SPI(0, sck=Pin(6), mosi=Pin(7), miso=Pin(4), baudrate=30_000_000)
|
||||||
gc.collect() # Precaution before instantiating framebuf
|
gc.collect() # Precaution before instantiating framebuf
|
||||||
ssd = SSD(spi, pcs, pdc, prst)
|
ssd = SSD(spi, pcs, pdc, prst)
|
||||||
|
|
Ładowanie…
Reference in New Issue