russhughes / gc9a01_mpy

Fast MicroPython driver for GC9A01 display modules written in C
Other
153 stars 31 forks source link

Little mistake in documentation chapter 'working example' #18

Open fca1 opened 1 year ago

fca1 commented 1 year ago

Tested (success) with micropython >V1.20 (idf 5.02), there is little mistake in the chapter : "working example"

The polarity is setted to '1', it's wrong : polarity=0 (sclk = 0 in idle state) for CG9a01 driver.

ESP32

import machine import gc9a01 spi = machine.SPI(2, baudrate=40000000, polarity=1, sck=machine.Pin(18), mosi=machine.Pin(23))