In order to use the Arduino library, you will need to write a C++ application that contains two functions:
#include <Arduino.h> void setup() { // Setup code } void loop() { // Loop code }
To compile your code, you will need to execute the following:
g++ -MD -o <yourApp> <yourFile.cpp> -L<Install/lib> -larduino -lpthread
Breaking this down we have:
-MD
-L<Install/lib>
-larduino
-lpthread
There was an error while loading. Please reload this page.