# Importing arduino library files into pynq

**URL:** <https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272>\
**Category:** Support\
**Created:** [May 14, 2020, 6:13pm UTC](https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272 "2020-05-14T18:13:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_V](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/kevin_v/32/744_2.png) [@Kevin\_V](https://discuss.pynq.io/u/Kevin_V)\
**Post date:** [May 14, 2020, 6:13pm UTC](https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272/1 "2020-05-14T18:13:37Z")

</div>

Hello,

I would like some help on how i would be able to import arduino files such as .c, .h, and .cpp into pynq so i can use them on my pynq z2 board with jupyter.

I believe i read somewhere that i must first compile the files to be compatible with the microblaze processor. Is this correct and if so how would i go about it?

I trying to make my Adafruit RA8875 touch display work with my pynq z2 board. My plan is to take an image or video coming from the HDMI input and display it onto the screen. Right now i want to use the Arduino ports as i am new to pynq but later will use pmod to connect to the display.

Here is the link to the adafruit page for the display i am using if you want to check it out:

> **[RA8875 Touch Display Driver Board](https://learn.adafruit.com/ra8875-touch-display-driver-board/arduino)**
>
> The RA8875 is a hardware accelerated display driver board that allows you to use a large display with low powered MicroControllers such as the Arduino and Atmel SAMD processors without the need to had huge amounts of external memory. In this guide we...

Github link to one of the Arduino libraries i want to import:

> **[GitHub - adafruit/Adafruit-GFX-Library: Adafruit GFX graphics core library,...](https://github.com/adafruit/Adafruit-GFX-Library)**
>
> Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from - GitHub - adafruit/Adafruit-GFX-Library: Adafruit GFX graphics core library, ...

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [May 18, 2020, 3:52pm UTC](https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272/2 "2020-05-18T15:52:29Z")

</div>

I think a good starting point would be: [PYNQ MicroBlaze Subsystem — Python productivity for Zynq (Pynq)](https://pynq.readthedocs.io/en/latest/overlay_design_methodology/pynq_microblaze_subsystem.html#writing-applications)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [May 18, 2020, 5:34pm UTC](https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272/3 "2020-05-18T17:34:43Z")

</div>

You should have a look at this notebook, [PYNQ\_Workshop/5\_microblaze\_programming.ipynb at master · Xilinx/PYNQ\_Workshop · GitHub](https://github.com/Xilinx/PYNQ_Workshop/blob/master/Session_3/5_microblaze_programming.ipynb).  
The examples are simple but may help.

---

<div class="post-metadata">

**Author:** ![Kevin\_V](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/kevin_v/32/744_2.png) [@Kevin\_V](https://discuss.pynq.io/u/Kevin_V)\
**Post date:** [May 19, 2020, 9:12pm UTC](https://discuss.pynq.io/t/importing-arduino-library-files-into-pynq/1272/4 "2020-05-19T21:12:05Z")

</div>

Thanks guys! I will take a look at those links.
