Compare commits
2 commits
f04289c98b
...
914b76ba8b
| Author | SHA1 | Date | |
|---|---|---|---|
|
914b76ba8b |
|||
|
5b93e4a9c6 |
3 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
// SPDX-FileCopyrightText: 2026 A.M. Rowsell <amr@frzn.dev>
|
||||
|
||||
#include "aht.h"
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
|
|
|
|||
11
src/main.c
11
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 <boards/pico_w.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue