08-28-2016, 11:04 PM
(01-11-2016, 02:15 PM)MichalK Wrote: Dear Nicolas Zin,
If you could answer the following questions, you would make it easier for us to help you.
- What is the exact product code of the TCM and the USB2TCM you are using? (Example product codes respectively: TCM-P102-220_v1.1 / USB2TCM_v1.1)
- How do you generate your epd images? Do you use the MpicoSys Convert Tool?
- You wrote that you upload images to the TCM via USB2TCM. Is it executed by a script or manually? Do you remove the old image before uploading a new one? Do you download the image from the USB storage device and then use it again?
- What operating system are you using?
Best regards,
Michal Kamelski - Product Engineer at MpicoSys
Hi,
I work again on my pet project,
I removed the USB2TCM that I was using, and I connected TCM to a raspberry PI 3.
I leverage heavily the project found on https://github.com/Ceruleous/EPaperReader
It helped me a lot to:
- connect to the correct GPIO
- and write the code to upload the images.
I had to change a bit the code because I am using a 10.2'' not a 7''
so the code looks more like
Code:
def upload_image(image_data):
resp=spi.xfer2(upload_header_command + image_header)
while(GPIO.input(16)==GPIO.LOW): #wait for processing
pass
#for x in range(0,48000,250):
for x in range(0,163840,250):
resp=spi.xfer2(upload_image_data_command + image_data[x:x+250])
if (resp[0]!=0x90 or resp[1]!=0x0):
print "error (x=%d %02x %02x)" % (x,resp[0],resp[1])
while(GPIO.input(16)==GPIO.LOW): #wait for processing
pass