From 28ffe073703c7b426014b9e43bbfe086dc5b8dbb Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 22 Aug 2022 00:13:09 +0200 Subject: [PATCH] Try different build strategy --- builder/main.py | 22 ++---- examples/arduino-ota/.gitignore | 1 + examples/arduino-ota/README.md | 29 ++++++++ examples/arduino-ota/include/README | 39 +++++++++++ examples/arduino-ota/lib/README | 46 ++++++++++++ examples/arduino-ota/platformio.ini | 23 ++++++ examples/arduino-ota/src/main.cpp | 78 +++++++++++++++++++++ examples/arduino-ota/test/README | 11 +++ examples/arduino-signed-ota/.gitignore | 1 + examples/arduino-signed-ota/README.md | 29 ++++++++ examples/arduino-signed-ota/include/README | 39 +++++++++++ examples/arduino-signed-ota/lib/README | 46 ++++++++++++ examples/arduino-signed-ota/platformio.ini | 23 ++++++ examples/arduino-signed-ota/src/main.cpp | 78 +++++++++++++++++++++ examples/arduino-signed-ota/src/private.key | 27 +++++++ examples/arduino-signed-ota/src/public.key | 9 +++ examples/arduino-signed-ota/test/README | 11 +++ 17 files changed, 496 insertions(+), 16 deletions(-) create mode 100644 examples/arduino-ota/.gitignore create mode 100644 examples/arduino-ota/README.md create mode 100644 examples/arduino-ota/include/README create mode 100644 examples/arduino-ota/lib/README create mode 100644 examples/arduino-ota/platformio.ini create mode 100644 examples/arduino-ota/src/main.cpp create mode 100644 examples/arduino-ota/test/README create mode 100644 examples/arduino-signed-ota/.gitignore create mode 100644 examples/arduino-signed-ota/README.md create mode 100644 examples/arduino-signed-ota/include/README create mode 100644 examples/arduino-signed-ota/lib/README create mode 100644 examples/arduino-signed-ota/platformio.ini create mode 100644 examples/arduino-signed-ota/src/main.cpp create mode 100644 examples/arduino-signed-ota/src/private.key create mode 100644 examples/arduino-signed-ota/src/public.key create mode 100644 examples/arduino-signed-ota/test/README diff --git a/builder/main.py b/builder/main.py index c80b00d..cd26eda 100644 --- a/builder/main.py +++ b/builder/main.py @@ -226,25 +226,18 @@ env.Append( ) is_arduino_pico_build = env.BoardConfig().get("build.core", "arduino") == "earlephilhower" and "arduino" in env.get("PIOFRAMEWORK") -target_gen_header = None if is_arduino_pico_build: pubkey = join(env.subst("$PROJECT_SRC_DIR"), "public.key") if isfile(pubkey): header_file = join(env.subst("$BUILD_DIR"), "core", "Updater_Signing.h") - env.Prepend(CFLAGS=['-I"%s"' % join("$BUILD_DIR", "core")]) - signing_header_cmd = env.Command( - join("$BUILD_DIR", "core", "Updater_Signing.h"), # $TARGET - join("$PROJECT_SRC_DIR", "public.key"), # $SOURCE - env.VerboseAction(" ".join([ + env.Prepend(CCFLAGS=['-I"%s"' % join("$BUILD_DIR", "core")]) + env.Execute(" ".join([ '"$PYTHONEXE" "%s"' % join( platform.get_package_dir("framework-arduinopico"), "tools", "signing.py"), "--mode", "header", - "--publickey", '"$SOURCE"', - "--out", "$TARGET" - ]), "Generating $TARGET") - ) - target_gen_header = env.Alias("gen_header", signing_header_cmd) - AlwaysBuild(target_gen_header) + "--publickey", '"%s"' % join("$PROJECT_SRC_DIR", "public.key"), + "--out", '"%s"' % join("$BUILD_DIR", "core", "Updater_Signing.h") + ])) # # Target: Build executable and linkable firmware @@ -526,7 +519,4 @@ env.AddPlatformTarget("uploadfs", target_firm, upload_actions, "Upload Filesyste # # Default targets # -if target_gen_header is not None: - Default([target_gen_header, target_buildprog, target_size]) -else: - Default([target_buildprog, target_size]) +Default([target_buildprog, target_size]) diff --git a/examples/arduino-ota/.gitignore b/examples/arduino-ota/.gitignore new file mode 100644 index 0000000..03f4a3c --- /dev/null +++ b/examples/arduino-ota/.gitignore @@ -0,0 +1 @@ +.pio diff --git a/examples/arduino-ota/README.md b/examples/arduino-ota/README.md new file mode 100644 index 0000000..938e48b --- /dev/null +++ b/examples/arduino-ota/README.md @@ -0,0 +1,29 @@ +How to build PlatformIO based project +===================================== + +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) +2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip) +3. Extract ZIP archive +4. Run these commands: + +```shell +# Change directory to example +$ cd platform-raspberrypi/examples/arduino-blink + +# Build project +$ pio run + +# Upload firmware +$ pio run --target upload + +# Clean build files +$ pio run --target clean +``` + +## Notes + +For Raspberry Pi Pico devices, two Arduino cores exist: +* https://github.com/arduino/ArduinoCore-mbed +* https://github.com/earlephilhower/arduino-pico + +This examples showcases how to use both of these cores in the `platformio.ini`. \ No newline at end of file diff --git a/examples/arduino-ota/include/README b/examples/arduino-ota/include/README new file mode 100644 index 0000000..194dcd4 --- /dev/null +++ b/examples/arduino-ota/include/README @@ -0,0 +1,39 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the usual convention is to give header files names that end with `.h'. +It is most portable to use only letters, digits, dashes, and underscores in +header file names, and at most one dot. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/examples/arduino-ota/lib/README b/examples/arduino-ota/lib/README new file mode 100644 index 0000000..6debab1 --- /dev/null +++ b/examples/arduino-ota/lib/README @@ -0,0 +1,46 @@ + +This directory is intended for project specific (private) libraries. +PlatformIO will compile them to static libraries and link into executable file. + +The source code of each library should be placed in a an own separate directory +("lib/your_library_name/[here are source files]"). + +For example, see a structure of the following two libraries `Foo` and `Bar`: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- README --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +and a contents of `src/main.c`: +``` +#include +#include + +int main (void) +{ + ... +} + +``` + +PlatformIO Library Dependency Finder will find automatically dependent +libraries scanning project source files. + +More information about PlatformIO Library Dependency Finder +- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/examples/arduino-ota/platformio.ini b/examples/arduino-ota/platformio.ini new file mode 100644 index 0000000..31c6775 --- /dev/null +++ b/examples/arduino-ota/platformio.ini @@ -0,0 +1,23 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter, extra scripting +; Upload options: custom port, speed and extra flags +; Library options: dependencies, extra library storages +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env] +platform = raspberrypi +framework = arduino + +; upload via USB +[env:rpipicow_via_usb] +board = rpipicow +upload_protocol = mbed + +; upload via OTA (change IP) +[env:rpipicow_via_ota] +board = rpipicow +upload_protocol = espota +upload_port = 192.168.0.206 diff --git a/examples/arduino-ota/src/main.cpp b/examples/arduino-ota/src/main.cpp new file mode 100644 index 0000000..2d102c7 --- /dev/null +++ b/examples/arduino-ota/src/main.cpp @@ -0,0 +1,78 @@ +#include +#include +#include +#include +#include "Updater_Signing.h" + +#ifndef STASSID +#define STASSID "YourSSID" +#define STAPSK "YourPassword" +#endif + +const char* ssid = STASSID; +const char* password = STAPSK; + +void setup() { + Serial.begin(115200); + Serial.println("Booting"); + WiFi.mode(WIFI_STA); + WiFi.begin(ssid, password); + while (WiFi.waitForConnectResult() != WL_CONNECTED) { + Serial.println("Connection Failed! Rebooting..."); + delay(5000); + rp2040.restart(); + } + + // Port defaults to 8266 + // ArduinoOTA.setPort(8266); + + // Hostname defaults to esp8266-[ChipID] + // ArduinoOTA.setHostname("myesp8266"); + + // No authentication by default + // ArduinoOTA.setPassword("admin"); + + // Password can be set with it's md5 value as well + // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3 + // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3"); + + ArduinoOTA.onStart([]() { + String type; + if (ArduinoOTA.getCommand() == U_FLASH) { + type = "sketch"; + } else { // U_FS + type = "filesystem"; + } + + // NOTE: if updating FS this would be the place to unmount FS using FS.end() + Serial.println("Start updating " + type); + }); + ArduinoOTA.onEnd([]() { + Serial.println("\nEnd"); + }); + ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { + Serial.printf("Progress: %u%%\r", (progress / (total / 100))); + }); + ArduinoOTA.onError([](ota_error_t error) { + Serial.printf("Error[%u]: ", error); + if (error == OTA_AUTH_ERROR) { + Serial.println("Auth Failed"); + } else if (error == OTA_BEGIN_ERROR) { + Serial.println("Begin Failed"); + } else if (error == OTA_CONNECT_ERROR) { + Serial.println("Connect Failed"); + } else if (error == OTA_RECEIVE_ERROR) { + Serial.println("Receive Failed"); + } else if (error == OTA_END_ERROR) { + Serial.println("End Failed"); + } + }); + ArduinoOTA.begin(); + Serial.println("Ready"); + Serial.print("IP address: "); + Serial.println(WiFi.localIP()); +} + +void loop() { + ArduinoOTA.handle(); +} diff --git a/examples/arduino-ota/test/README b/examples/arduino-ota/test/README new file mode 100644 index 0000000..df5066e --- /dev/null +++ b/examples/arduino-ota/test/README @@ -0,0 +1,11 @@ + +This directory is intended for PIO Unit Testing and project tests. + +Unit Testing is a software testing method by which individual units of +source code, sets of one or more MCU program modules together with associated +control data, usage procedures, and operating procedures, are tested to +determine whether they are fit for use. Unit testing finds problems early +in the development cycle. + +More information about PIO Unit Testing: +- https://docs.platformio.org/page/plus/unit-testing.html diff --git a/examples/arduino-signed-ota/.gitignore b/examples/arduino-signed-ota/.gitignore new file mode 100644 index 0000000..03f4a3c --- /dev/null +++ b/examples/arduino-signed-ota/.gitignore @@ -0,0 +1 @@ +.pio diff --git a/examples/arduino-signed-ota/README.md b/examples/arduino-signed-ota/README.md new file mode 100644 index 0000000..938e48b --- /dev/null +++ b/examples/arduino-signed-ota/README.md @@ -0,0 +1,29 @@ +How to build PlatformIO based project +===================================== + +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) +2. Download [development platform with examples](https://github.com/platformio/platform-raspberrypi/archive/develop.zip) +3. Extract ZIP archive +4. Run these commands: + +```shell +# Change directory to example +$ cd platform-raspberrypi/examples/arduino-blink + +# Build project +$ pio run + +# Upload firmware +$ pio run --target upload + +# Clean build files +$ pio run --target clean +``` + +## Notes + +For Raspberry Pi Pico devices, two Arduino cores exist: +* https://github.com/arduino/ArduinoCore-mbed +* https://github.com/earlephilhower/arduino-pico + +This examples showcases how to use both of these cores in the `platformio.ini`. \ No newline at end of file diff --git a/examples/arduino-signed-ota/include/README b/examples/arduino-signed-ota/include/README new file mode 100644 index 0000000..194dcd4 --- /dev/null +++ b/examples/arduino-signed-ota/include/README @@ -0,0 +1,39 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the usual convention is to give header files names that end with `.h'. +It is most portable to use only letters, digits, dashes, and underscores in +header file names, and at most one dot. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/examples/arduino-signed-ota/lib/README b/examples/arduino-signed-ota/lib/README new file mode 100644 index 0000000..6debab1 --- /dev/null +++ b/examples/arduino-signed-ota/lib/README @@ -0,0 +1,46 @@ + +This directory is intended for project specific (private) libraries. +PlatformIO will compile them to static libraries and link into executable file. + +The source code of each library should be placed in a an own separate directory +("lib/your_library_name/[here are source files]"). + +For example, see a structure of the following two libraries `Foo` and `Bar`: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- README --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +and a contents of `src/main.c`: +``` +#include +#include + +int main (void) +{ + ... +} + +``` + +PlatformIO Library Dependency Finder will find automatically dependent +libraries scanning project source files. + +More information about PlatformIO Library Dependency Finder +- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/examples/arduino-signed-ota/platformio.ini b/examples/arduino-signed-ota/platformio.ini new file mode 100644 index 0000000..31c6775 --- /dev/null +++ b/examples/arduino-signed-ota/platformio.ini @@ -0,0 +1,23 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter, extra scripting +; Upload options: custom port, speed and extra flags +; Library options: dependencies, extra library storages +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env] +platform = raspberrypi +framework = arduino + +; upload via USB +[env:rpipicow_via_usb] +board = rpipicow +upload_protocol = mbed + +; upload via OTA (change IP) +[env:rpipicow_via_ota] +board = rpipicow +upload_protocol = espota +upload_port = 192.168.0.206 diff --git a/examples/arduino-signed-ota/src/main.cpp b/examples/arduino-signed-ota/src/main.cpp new file mode 100644 index 0000000..2d102c7 --- /dev/null +++ b/examples/arduino-signed-ota/src/main.cpp @@ -0,0 +1,78 @@ +#include +#include +#include +#include +#include "Updater_Signing.h" + +#ifndef STASSID +#define STASSID "YourSSID" +#define STAPSK "YourPassword" +#endif + +const char* ssid = STASSID; +const char* password = STAPSK; + +void setup() { + Serial.begin(115200); + Serial.println("Booting"); + WiFi.mode(WIFI_STA); + WiFi.begin(ssid, password); + while (WiFi.waitForConnectResult() != WL_CONNECTED) { + Serial.println("Connection Failed! Rebooting..."); + delay(5000); + rp2040.restart(); + } + + // Port defaults to 8266 + // ArduinoOTA.setPort(8266); + + // Hostname defaults to esp8266-[ChipID] + // ArduinoOTA.setHostname("myesp8266"); + + // No authentication by default + // ArduinoOTA.setPassword("admin"); + + // Password can be set with it's md5 value as well + // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3 + // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3"); + + ArduinoOTA.onStart([]() { + String type; + if (ArduinoOTA.getCommand() == U_FLASH) { + type = "sketch"; + } else { // U_FS + type = "filesystem"; + } + + // NOTE: if updating FS this would be the place to unmount FS using FS.end() + Serial.println("Start updating " + type); + }); + ArduinoOTA.onEnd([]() { + Serial.println("\nEnd"); + }); + ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { + Serial.printf("Progress: %u%%\r", (progress / (total / 100))); + }); + ArduinoOTA.onError([](ota_error_t error) { + Serial.printf("Error[%u]: ", error); + if (error == OTA_AUTH_ERROR) { + Serial.println("Auth Failed"); + } else if (error == OTA_BEGIN_ERROR) { + Serial.println("Begin Failed"); + } else if (error == OTA_CONNECT_ERROR) { + Serial.println("Connect Failed"); + } else if (error == OTA_RECEIVE_ERROR) { + Serial.println("Receive Failed"); + } else if (error == OTA_END_ERROR) { + Serial.println("End Failed"); + } + }); + ArduinoOTA.begin(); + Serial.println("Ready"); + Serial.print("IP address: "); + Serial.println(WiFi.localIP()); +} + +void loop() { + ArduinoOTA.handle(); +} diff --git a/examples/arduino-signed-ota/src/private.key b/examples/arduino-signed-ota/src/private.key new file mode 100644 index 0000000..09e3bc1 --- /dev/null +++ b/examples/arduino-signed-ota/src/private.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAu1Pt7yEk/xI+6cozLj5Bu4xV8gXDXcHS0rSJFfl4wBTk4UXp +aJRaLfR1k0juEEa5LBRZaoA0iLj2e6kfCibONx0VVoWmeqN2HBc3zkA1eqCksI0Q +Uudzto4KhKHp0odiZ2zo6c/2Tn1zqD/m3OLoSjVTbsJmGuwx8RGMBXozpg/uL0hH +flihX+HND4Xfw92QXv7SaPBhgvM9xyRxn0/w3J2nNjtuPuVN5vcQkd8ncMexVfy9 +AWp+HSA5AT5N8CJ/EeIsdDMY1US28bUePzj1WIo75bZHKZNFw/iXe2xoPpm74qri +MNSlW2craFP2K3KYnI28vJeUU6t9I6LS9zt2zQIDAQABAoIBAE5GpuDKb8Qp4qIc +fMBxAVSWMn+cSuONj0O+bp4BDaTt1ioP5ZVukDQtt0ehLOEePFgf9LEc+1a6Ozy3 +EaJTTs4W2Ai8djE+xqa8SPRlPjOMluSzPUP3NRHuTpTXd3YiXksrZjP1U02+/Cos +8ZIROtFvcPqSPso3MjMyitjrFFPqEtf1P+UiamjDrMSM72YX4W55kOkiCWCnAOmw +mGTlXOIqDSTBb1lloKWJfpB3RdnNo2izkU1HMBn7hVi433NUBA22o+RZhDFSZdD4 +3kbkUqXd4p+vc/sh6muJtWS/COSIPFkLzdEYpBdt3XQ4FhlsRtILJaPWXa4OPjR6 +ZoOwMB0CgYEA6OHfIofQiu4+HlTDN5YdyTmtYEYcrtbaQUxuQSEa2mshBphHP8uT +mYRVl2BzuprFmXZPz+FcjnPnfxqEehljvA3wMjA/PE+nQo9yyOC0N4ulXpkkqHdR +f+4KZVR7D+hesGe+57OQmvTqYZSHEt/ubjC9wZ90UFonLjsa4zibbrsCgYEAzexn +XDnThb3ffyBgvprP0IJjgMAEY0pXD++PKPQqPu9JMz68t7roYzkKFCFVOsaWpKxC +vX9mvYjTBjLpWh+ltIAN+EFz6seIbeSJ0RNybsAXYwT/mFWGHx2tMtlW6DgBu3UD +J2Yf76n0JaddBkfNMQI00Dl41+MU+AwwTB9fTBcCgYB2+f6Pm6d1cyYVROS/X1g0 +V9011FwPDwFOXwftCka31Ad5YQ71jsIHqk44GjTF3xCYyJMZ917cAGcCzr9jydjk +WJKgcXm9DEy9ep//9Jzdy+BepgrObrcajriM8E424FaP9VDY+yojoICl/cXMZM9h +SFGJvDcmXgiqW9PuxhrSxQKBgAMN2oqXoPd+1W3BQS4ShbqF9IvYTThbxebKmsj0 +thuw2NkVuR7Qetnd4rRhui3g/CL9GxBMb22oNdkFsEhR59dBfvOLpPh6dR+MIC8l +prDV0IL7c/8CZbbYbdUvPAa9rejl12IiNZ8MWj6kuNB7CCQN8FKWR6CMEaeMJrs6 +S+OJAoGAbehNOUwEzmUKkfxf+279kBkgabcQ3NTaeSx0QOnI9KWHFGLYLQk9cMSu +maQJ1TYpbIoP1njzJ4bI2tynhwEuSMEhh4afP6U5H10NJX4PqSd0Rqc1vSJYcszr +5mUWil8FfbCBZ8jod2NQ55KYMVY5CphCqaK/s2bw2pvIR3uqJGg= +-----END RSA PRIVATE KEY----- diff --git a/examples/arduino-signed-ota/src/public.key b/examples/arduino-signed-ota/src/public.key new file mode 100644 index 0000000..054e88b --- /dev/null +++ b/examples/arduino-signed-ota/src/public.key @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu1Pt7yEk/xI+6cozLj5B +u4xV8gXDXcHS0rSJFfl4wBTk4UXpaJRaLfR1k0juEEa5LBRZaoA0iLj2e6kfCibO +Nx0VVoWmeqN2HBc3zkA1eqCksI0QUudzto4KhKHp0odiZ2zo6c/2Tn1zqD/m3OLo +SjVTbsJmGuwx8RGMBXozpg/uL0hHflihX+HND4Xfw92QXv7SaPBhgvM9xyRxn0/w +3J2nNjtuPuVN5vcQkd8ncMexVfy9AWp+HSA5AT5N8CJ/EeIsdDMY1US28bUePzj1 +WIo75bZHKZNFw/iXe2xoPpm74qriMNSlW2craFP2K3KYnI28vJeUU6t9I6LS9zt2 +zQIDAQAB +-----END PUBLIC KEY----- diff --git a/examples/arduino-signed-ota/test/README b/examples/arduino-signed-ota/test/README new file mode 100644 index 0000000..df5066e --- /dev/null +++ b/examples/arduino-signed-ota/test/README @@ -0,0 +1,11 @@ + +This directory is intended for PIO Unit Testing and project tests. + +Unit Testing is a software testing method by which individual units of +source code, sets of one or more MCU program modules together with associated +control data, usage procedures, and operating procedures, are tested to +determine whether they are fit for use. Unit testing finds problems early +in the development cycle. + +More information about PIO Unit Testing: +- https://docs.platformio.org/page/plus/unit-testing.html