Files
smartweatherstation_v2.0/lib/Vector/examples/PlatformIO
2025-07-08 08:54:35 +08:00
..
2025-07-08 08:54:35 +08:00
2025-07-08 08:54:35 +08:00
2025-07-08 08:54:35 +08:00
2025-07-08 08:54:35 +08:00
2025-07-08 08:54:35 +08:00
2025-07-08 08:54:35 +08: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