Made working app; updated README with instructions on how to flash
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2026-09-07 19:31:51 -04:00
parent aab1de52a9
commit 5f53cc3024
4 changed files with 91 additions and 8 deletions
+16 -5
View File
@@ -1,7 +1,7 @@
# Pico Time
![Woodpecker CI badge](https://builds.metaunix.net/api/badges/93/status.svg)
![shields.io version badge](https://img.shields.io/gitea/v/release/BitGoblin/pico-weather?gitea_url=https://git.metaunix.net)
![shields.io version badge](https://img.shields.io/gitea/v/release/BitGoblin/pico-time?gitea_url=https://git.metaunix.net)
A [MicroPython](https://micropython.org/) app to display local time on an SSD1306 display.
@@ -33,13 +33,24 @@ These are not necessary to run the app, but can be useful for testing and/or fla
### Requirements
* [MicroPython](https://micropython.org/download/) - MicroPython downloads
* [mpremote](https://docs.micropython.org/en/latest/reference/mpremote.html) - MicroPython remote serial tool
* (Linux users) Your user should be a part of the `dialout` group
### Steps
1. Flash your Raspberry Pi Pico with MicroPython.
2. Copy `config.example.py` to `config.py` and edit the settings to match your environment.
3. Copy `main.py` and `config.py` to the root of the filesystem on the Pico.
4. Connect the SSD1306 display to your Pico and power on.
1. Connect your SSD1306 display to your Pico.
2. Connect your Pico to your PC via a micro-USB to USB type-A cable.
3. [Flash your Raspberry Pi Pico with MicroPython](https://docs.micropython.org/en/latest/rp2/tutorial/reset.html).
a. This has been tested with MicroPython 1.29, but other versions should work.
4. Clone this git repository: `git clone https://git.metaunix.net/BitGoblin/pico-time`.
5. `cd` into the repo: `cd pico-time`.
6. Copy `config.example.py` to `config.py` and edit the settings to match your environment.
7. Copy the Python code over to the Pico:
a. `mpremote cp main.py :main.py`
b. `mpremote cp config.py :config.py`
8. Reset the Pico: `mpremote reset`
If it worked you should see the display show a message about connecting to WiFi, then syncing time and finally displaying the local time. If it failed, you can monitor the app via `mpremote repl` or using an IDE like [Thonny](https://thonny.org/).
## License