Porting Adafruit ILI9341 Library

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
CiaranLappin
 
Posts: 8
Joined: Thu Sep 29, 2016 11:39 am

Porting Adafruit ILI9341 Library

Post by CiaranLappin »

Hi,

I'm am looking at porting the Adafruit_ILI9341 library to another microprocessor.
I have attempted to port the init, writecommand, writedata and drawpixel functions already with little luck.

any hints or tips on doing this would be appreciated,

Regards,
Ciaran

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Porting Adafruit ILI9341 Library

Post by adafruit_support_mike »

Nothing specific. Start with the low-level code that handles communication with the display first. Most of the higher-level code should work on any platform.

User avatar
CiaranLappin
 
Posts: 8
Joined: Thu Sep 29, 2016 11:39 am

Re: Porting Adafruit ILI9341 Library

Post by CiaranLappin »

Thanks for getting back to me. you wouldn't know what driver version the LCD get shipped with, can't find the version code to compare it.

Thanks a million
Ciaran

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Porting Adafruit ILI9341 Library

Post by adafruit2 »

theres no real 'version' for the ILI9341 that we know of - the init code we have in the library works so please use that :)

User avatar
CiaranLappin
 
Posts: 8
Joined: Thu Sep 29, 2016 11:39 am

Re: Porting Adafruit ILI9341 Library

Post by CiaranLappin »

Will do, thanks. I'll close this post once I get to a PC. Thanks for your help.

User avatar
CiaranLappin
 
Posts: 8
Joined: Thu Sep 29, 2016 11:39 am

Re: Porting Adafruit ILI9341 Library

Post by CiaranLappin »

hi,

just one follow comment.

On the arduino, is the SPI output clock constantly running or just for the transaction?

I'm able to see data and commands being written to the display via the scope, but the screen isn't reacting. e.g. Using the display off command and not seeing a response.

Any ideas?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Porting Adafruit ILI9341 Library

Post by adafruit_support_mike »

The Arduino's SPI clock is derived from the system clock, so it's always running.

User avatar
CiaranLappin
 
Posts: 8
Joined: Thu Sep 29, 2016 11:39 am

Re: Porting Adafruit ILI9341 Library

Post by CiaranLappin »

Thanks for everything so far Mike.

I have managed to get the display to turn off and on using the commands. I'm sure these are only one byte commands though.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”