RA8875 library files, where to find?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
brian49
 
Posts: 61
Joined: Tue Oct 14, 2014 6:08 pm

RA8875 library files, where to find?

Post by brian49 »

I found Adafruit_Ra8875.cpp and .h files at GitHub, but it seems there are missing macros or functions inside the files, such as digialWrite() and SPI.transfer() in function below. Where to find all the files?

Regards,
Brian

uint8_t Adafruit_RA8875::readData(void)
{
digitalWrite(_cs, LOW);
SPI.transfer(RA8875_DATAREAD);
uint8_t x = SPI.transfer(0x0);
digitalWrite(_cs, HIGH);
return x;
}

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

Re: RA8875 library files, where to find?

Post by adafruit_support_mike »

digitalWrite() is defined in the Arduino libraries, and the SPI library is included with any installation of the Arduino IDE.

https://github.com/arduino/Arduino/blob ... _digital.c
https://github.com/arduino/Arduino/blob ... PI/SPI.cpp

User avatar
brian49
 
Posts: 61
Joined: Tue Oct 14, 2014 6:08 pm

Re: RA8875 library files, where to find?

Post by brian49 »

I don't use Arduino -- our system already have an embedded Freescale processor MC56F8367 which will also control the RA8875 and lcd display. I hope we can use the library with some modifications even if we don't have Arduino IDE.

Thanks,
Brian

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: RA8875 library files, where to find?

Post by Franklin97355 »

You will have to write those functions. You can use the links above to find the Arduino files and then use them as prototypes for your new functions. If you check out the freescale forums you might find someone has already done this.

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

Return to “Other Arduino products from Adafruit”