Fix lcd driver

This commit is contained in:
iabdalkader 2014-03-22 19:43:48 +02:00
parent fa541c6ecd
commit d13bd63dfe

View File

@ -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):