Compare commits

...

2 commits

Author SHA1 Message Date
914b76ba8b
fix: MISRA fixes in source files 2026-07-06 16:11:34 -04:00
5b93e4a9c6
readme: add link to tio 2026-07-06 16:08:00 -04:00
3 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2026 A.M. Rowsell <amr@frzn.dev>
#include "aht.h"
#include "hardware/i2c.h"

View file

@ -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 <boards/pico_w.h>