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;
}
RA8875 library files, where to find?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: RA8875 library files, where to find?
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
https://github.com/arduino/Arduino/blob ... _digital.c
https://github.com/arduino/Arduino/blob ... PI/SPI.cpp
- brian49
- Posts: 61
- Joined: Tue Oct 14, 2014 6:08 pm
Re: RA8875 library files, where to find?
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
Thanks,
Brian
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: RA8875 library files, where to find?
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.
Please be positive and constructive with your questions and comments.