From 5b93e4a9c681fcabd624d8a18dab2d616df341ae Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Mon, 6 Jul 2026 16:08:00 -0400 Subject: [PATCH 1/2] readme: add link to tio --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c0c5c4..79c8bc6 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ and if you have a picoprobe or RasPi debug probe installed (or other CMSIS-DAP c ``` make flash ``` -or, you can hold down the BOOT button on the Pico W while plugging it in. It will appear as a USB drive. Then copy the ensaht.uf2 file from the build/ directory to that USB drive. It'll take a second, then it'll disappear. You may need to manually reset the Pico (or unplug/replug it). Open a serial terminal (I used to recommend minicom until I found tio, which is much better), probably something like +or, you can hold down the BOOT button on the Pico W while plugging it in. It will appear as a USB drive. Then copy the ensaht.uf2 file from the build/ directory to that USB drive. It'll take a second, then it'll disappear. You may need to manually reset the Pico (or unplug/replug it). Open a serial terminal (I used to recommend minicom until I found [tio](https://github.com/tio/tio), which is much better), probably something like ``` tio /dev/ttyACM0 From 914b76ba8b13495311ff5468e15cb21c92fa808a Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Mon, 6 Jul 2026 16:11:34 -0400 Subject: [PATCH 2/2] fix: MISRA fixes in source files --- src/aht.c | 3 +++ src/main.c | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/aht.c b/src/aht.c index 08e4009..e523ae3 100644 --- a/src/aht.c +++ b/src/aht.c @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// SPDX-FileCopyrightText: 2026 A.M. Rowsell + #include "aht.h" #include "hardware/i2c.h" diff --git a/src/main.c b/src/main.c index bc623f0..e3e41bf 100644 --- a/src/main.c +++ b/src/main.c @@ -18,13 +18,14 @@ * the readings to Adafruit IO over MQTT using the Pico W. ******************************************************************************/ -#include "aht.h" -#include "bmp.h" -#include "credentials.h" -#include "ens.h" #include "hardware/gpio.h" #include "hardware/i2c.h" -#include "mqtt.h" +#include "include/aht.h" +#include "include/bmp.h" +#include "include/credentials.h" +#include "include/ens.h" +#include "include/mqtt.h" +#include "include/opt4048.h" #include "pico/cyw43_arch.h" #include "pico/stdlib.h" // IWYU pragma: keep #include