Go Down

Topic: Porting from Uno to MKRZERO (Read 975 times) previous topic - next topic

JesterJ

Newbie here, I'm attempting to run the following code

https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2/graphics-test

that appears to be written for a Uno on a MKRZERO. I have installed the Adafruit_ILI9341 and Adafruit_GFX_Librar.

What is involved in porting this code to the MKRZERO?

ballscrewbob

Quite a lot is involved as it was intended to an AVR MCU and not a SAMD MCU.

There are some strong differences in the two architecture alone not to mention the hardware pin outs which would require either an MKR to UNO adaptor or jumper wires.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

JesterJ

Thanks for that, I was able to get in running this morning, with some really simple changes. I was more than surprised as to how easy it was. I think this is because most of the graphics are actually being handled by the actual display driver hardware and as long as the correct SPI commands are sent it works.

Kudos to the contributors (Limor Fried/Ladyada) that wrote the graphics libraries.

ballscrewbob

WOW you should post a write up on how you did it...could be useful to others.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up