# Adafruit\_RA8875?

**URL:** <https://community.particle.io/t/adafruit-ra8875/9380>\
**Category:** Libraries\
**Created:** [January 15, 2015, 5:32pm UTC](https://community.particle.io/t/adafruit-ra8875/9380 "2015-01-15T17:32:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![screamingcities](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@screamingcities](https://community.particle.io/u/screamingcities)\
**Post date:** [January 15, 2015, 5:32pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/1 "2015-01-15T17:32:08Z")

</div>

Does anyone know if there is a working Spark conversion for this library? I’m planning a project, and would really dig one of those nice big touchscreens. 😄

The board in question:  
[RA8875 TFT Driver Board](http://www.adafruit.com/product/1590)

The library in question:  
[RA8875 Arduino Library](https://github.com/adafruit/Adafruit_RA8875)

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 15, 2015, 5:56pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/2 "2015-01-15T17:56:33Z")

</div>

I’m not aware of a finished port of this lib, but just skimming over the code it looks quite portable.

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [January 15, 2015, 5:59pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/3 "2015-01-15T17:59:30Z")

</div>

@screamingcities, please keep your questions to a single post. I already answered this on the mfGFX library topic:

> **[NEW Adafruit\_mfGFX multifont library](https://community.particle.io/t/new-adafruit-mfgfx-multifont-library/4156/75)**
>
> @screamingcities, the Adafruit RA8875 library looks very easy to port. The only problem with this device is: Please note! The RA8875 does not tri-state the MISO pin, it should not share that pin with any other SPI device (including an SD card...

---

<div class="post-metadata">

**Author:** ![screamingcities](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@screamingcities](https://community.particle.io/u/screamingcities)\
**Post date:** [January 15, 2015, 6:50pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/4 "2015-01-15T18:50:11Z")

</div>

Oh sorry peeKay, I’d actually already posted this before you responded, and I posted this figuring it was a question that should probably be it’s own thing rather then just randomly in another post- didn’t mean to offend?

Thanks for the info though… Any kind of good tutorials on porting libraries? I’ve never done so, and I’m honestly not sure where to begin.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 15, 2015, 8:29pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/5 "2015-01-15T20:29:25Z")

</div>

@screamingcities, in this case porting sounds bigger than it actually is, since there’s no bare metal programming required.

Some basic tips & hints you’ll find here

> **[harrisonhjones/Spark-Ported-Libraries](https://github.com/harrisonhjones/Spark-Ported-Libraries)**
>
> Spark-Ported-Libraries - A small repo of ported libraries for the SparkCore along with a "how to" of porting libraries

As long you can read C/C++ you’ll find your way round.  
One thing to consider in this case is the different CPU speed, so you’ll have to adjust the `SPI_CLOCK_DIV`

e.g.

```auto
#if defined(SPARK)
    SPI.setClockDivider(SPI_CLOCK_DIV32);
#else
  #ifdef __AVR__
    SPI.setClockDivider(SPI_CLOCK_DIV4);
  #endif
#endif

```

---

<div class="post-metadata">

**Author:** ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)\
**Post date:** [February 25, 2019, 7:05pm UTC](https://community.particle.io/t/adafruit-ra8875/9380/6 "2019-02-25T19:05:52Z")

</div>

I know this is an old thread, but I started a project that uses the Driver Board linked above and a 7-inch 800x480 resistive display.

The Adafruit\_RA8875 library is working very well for me on a photon. I did have to make one slight modification to the library though. In `Adafruit_RA8875.cpp` I had to add the following line:

```auto
#define SPI_HAS_TRANSACTION 1

```
