Community
cancel
Showing results for 
Search instead for 
Did you mean: 
EM4
New Contributor I
1,767 Views

Arduino vs Yocto programming for Adafruit display

Jump to solution

I am trying to get Adafruit display ILI9341 working with 8bit parallel interface and simple C/C++ program.

When trying to compile libraries provided by Adafruit, i get an endless errors "header file not found" - all for Arduino header files.

My questions are, can these libraries somehow be used with a standard C/C++ application. If yes, what is required?

Any other ways to quickly get functionality of this display on Edison?

I know there is a http://2ld.de/edidoom/ library with 8bit interface for doom, but i cannot use that as it expects all data pins to be assigned to consecutive GPIO pins - although it works very nicely

I'm stuck with 8bit interface, and I cannot change pin assignment.

thanks.

1 Solution
Pedro_M_Intel
Employee
151 Views

Hello inteliot,

The library https://github.com/intel-iot-devkit/upm UPM supports ILI9341. You can check their C++ example in https://github.com/intel-iot-devkit/upm/blob/master/examples/c%2B%2B/ili9341.cxx upm/ili9341.cxx at master · intel-iot-devkit/upm · GitHub. If this library doesn't work for you either, then the best option is to program the display manually according to the https://www.adafruit.com/datasheets/ILI9341.pdf https://www.adafruit.com/datasheets/ILI9341.pdf.

Peter.

View solution in original post

5 Replies
Pedro_M_Intel
Employee
152 Views

Hello inteliot,

The library https://github.com/intel-iot-devkit/upm UPM supports ILI9341. You can check their C++ example in https://github.com/intel-iot-devkit/upm/blob/master/examples/c%2B%2B/ili9341.cxx upm/ili9341.cxx at master · intel-iot-devkit/upm · GitHub. If this library doesn't work for you either, then the best option is to program the display manually according to the https://www.adafruit.com/datasheets/ILI9341.pdf https://www.adafruit.com/datasheets/ILI9341.pdf.

Peter.

View solution in original post

EM4
New Contributor I
151 Views

Hello Peter,

Thanks for your reply. This seems to be using SPI interface...Is that correct?

Pedro_M_Intel
Employee
151 Views

Yes, you are correct, in fact you can see in https://github.com/intel-iot-devkit/upm/blob/master/src/ili9341/ili9341.h upm/ili9341.h at master · intel-iot-devkit/upm · GitHub where mraa/spi.hpp is called.

Peter.

EM4
New Contributor I
151 Views

ok. Thanks. Unfortunately, I'm stuck with 8b interface. Do you know if there exists package that supports 8bit interface in C++. Thank you.

Pedro_M_Intel
Employee
151 Views

Unfortunately, no, I don't know any library that uses the 8 bit interface. I believe your best option is to program it manually according to the instructions in the datasheet I posted above.

Peter.

Reply