firmware-base/lib/Vector/examples/PlatformIO
2026-01-23 16:14:47 +01:00
..
include polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00
lib polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00
src polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00
test polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00
platformio.ini polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00
README.org polymech - fw - base 0.9 - its got to go somewhere :) 2026-01-23 16:14:47 +01:00

PlatformIO example

This example can be built using PlatformIO, instead of the Arduino IDE.

Running the code

Platform: native

  • To run the code in src/ natively:

     pio run -e native && .pio/build/native/program
  • To run the code in test/ natively:

      pio test -e native

Platform: Arduino

Before doing any of this, edit platformio.ini for your board.

  • To run the code in src/ on a device and then monitor its output:

      pio run -e uno -t upload && pio device monitor
  • To run the tests on a device:

      pio test -e uno

All platforms at once

  • To run the tests natively on all platforms described in `platformio.ini`:

      pio test