G4lile0 / tinyGS

📡 Open Ground Station Network 🛰
GNU General Public License v3.0
923 stars 177 forks source link

No WProgram.h file... #106

Closed radio-miskovice closed 3 years ago

radio-miskovice commented 3 years ago

Hello, I cloned the repo and tried to compile and upload it, but it does not compile.

tinyGS.ino file contains this fragment at line 67:

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

But there is no WProgram.h file anywhere in the project :(

Using VS Code & Platform.io plugin

4m1g0 commented 3 years ago

Hello,

Arduino should be defined and be greater than 100.

I think platformio is not reading the platformio.ini file correctly. Check that you opened the root file of the project, (the one which has the platformio.ini file).

Try to close everything and start these steps from the begining: https://github.com/G4lile0/tinyGS/wiki/Platformio

radio-miskovice commented 3 years ago

Oh, I see.. platform = arduino fixed the problem...