How can I realize that feature without double step slicing? Have you in TODO list full slicing realization in future?
I am working with ILI9341 (240x320) TFT LCD and for BMP image rendering I must have something fast as it.
I am changing now step by step MSB to LSB by f.read(1) function - it is too slow.
Code: Select all
with open(path + filename, 'rb') as f:
f.seek(138) # start colormap byte in BMP image
while True:
MSB = ord(f.read(1))
LSB = ord(f.read(1))
data = struct.pack('BB', LSB, MSB)
lcd_write_data(data)