Add missing method call in readme

pull/7/head
Ivan Belokobylskiy 2019-12-27 14:52:38 +03:00
rodzic 73530516df
commit dfa1346bd3
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -64,6 +64,7 @@ DC pins on the screen for the display object.
import st7789
spi = machine.SPI(1, baudrate=40000000, polarity=1)
display = st7789.ST7789(spi, 240, 240, reset=machine.Pin(5, machine.Pin.OUT), dc=machine.Pin(4, machine.Pin.OUT))
display.init()
For ESP32 modules you have to provide specific pins for SPI.
@ -82,6 +83,7 @@ Other SPI pins are not used.
import st7789
spi = machine.SPI(2, baudrate=40000000, polarity=1, sck=machine.Pin(18), mosi=machine.Pin(23))
display = st7789.ST7789(spi, 240, 240, reset=machine.Pin(4, machine.Pin.OUT), dc=machine.Pin(2, machine.Pin.OUT))
display.init()
I couldn't run the display on an SPI with baudrate higher than 40MHZ
@ -154,7 +156,7 @@ Helper functions
Performance
-----------
For the comparison I used an excelent library for Arduino
For the comparison I used an excellent library for Arduino
that can handle this screen.
https://github.com/ananevilya/Arduino-ST7789-Library/