![]() Looking at the library source code it is mainly just two files (SI4735.cpp, SI4735.h) written in general C++ code. I need the whole project to be compilable using cmake and gcc. ![]() I do not want to use arduino IDE as I need to integrate this library into a bigger program I am already working on. In the pi, you have to set the executable permission on the file (chmod +x ). I exported the code and (with a few trivial warnings) it created a binary file. In the IDE, instead of a "sketch", it's possible to make a binary file (Sketch > Export Compiled Binary). In the IDE, I set the board to "Raspberry Pi B+/2" (Tools > Board > Raspberry Pi). I compiled the simple sample program in the IDE, but added the "#include SI4735.h" at the top. ![]() I'm using VNC to remote into the Rpi from my laptop to run the IDE. I also installed Ricardo's library in Arduino IDE (Tools > Manage Libraries). I installed the Rpi board in Arduino IDE using the RaspiArduino framework. Following that i installed the Arduino IDE on my Rpi (linux 32 bit version for arm processor). I started searching in earnest and found an article on running arduino code on Rpi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |