Attempt at building a platformio version before starting on changes to testing
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright (c) 2012-2024 Scott Penrose <scottp@dd.com.au> and WII5 Buoy contributors
|
||||
//
|
||||
// This file is part of WII5 Buoy firmware.
|
||||
// See LICENSE for full terms.
|
||||
|
||||
/**
|
||||
* @file pio_main.cpp
|
||||
* @brief PlatformIO entry shim.
|
||||
*
|
||||
* PlatformIO only auto-detects a sketch (`*.ino`) at the top level of its
|
||||
* source directory, but this project's sketch lives at
|
||||
* `app/wii5_buoy/wii5_buoy.ino`. This shim pulls that sketch into the
|
||||
* PlatformIO build (where `setup()`/`loop()` are defined).
|
||||
*
|
||||
* It is gated on the `PLATFORMIO` macro (defined only by PlatformIO) so that
|
||||
* the arduino-cli build — which compiles the repo root as a flat library and
|
||||
* the .ino as the sketch — never sees a second definition of setup()/loop().
|
||||
*/
|
||||
|
||||
#if defined(PLATFORMIO)
|
||||
#include "app/wii5_buoy/wii5_buoy.ino"
|
||||
#endif
|
||||
Reference in New Issue
Block a user