mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix lcd driver
This commit is contained in:
parent
fa541c6ecd
commit
d13bd63dfe
@ -17,11 +17,10 @@ def write_command(c):
|
|||||||
spi.write(c)
|
spi.write(c)
|
||||||
cs.high()
|
cs.high()
|
||||||
|
|
||||||
def write_data(data):
|
def write_data(c):
|
||||||
cs.low()
|
cs.low()
|
||||||
rs.high()
|
rs.high()
|
||||||
for b in data:
|
spi.write(c)
|
||||||
spi.write(b)
|
|
||||||
cs.high()
|
cs.high()
|
||||||
|
|
||||||
def clear(c=0x00):
|
def clear(c=0x00):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user