This project uses Platform.io tools for programming.
The project have the following structure:
my_project/
├── .pio/
├── include/
├── lib/
├── src/
│ └── main.cpp
├── test/
└── platformio.ini
src/: This is where your main code goes.lib/: For project-specific libraries.include/: For project-specific header files.platformio.ini: The configuration file for your project.
You may want to change upload_port when building and uploading your code inside platformio.ini
This project depends on
Arduinofor Arduino functionspololu/PololuOLED@^2.0.0for OLED displaypololu/LIS3MDL@^2.0.0for magnetometerpololu/LSM6@^2.0.1for IMU
src/main.cpp.
- Build the project:
pio run- Upload the code to your board:
pio run --target upload