Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonprickett/pimoroni-phew-template-demo
Quick demo showing how to render a MicroPython list of tuples in a Pimoroni Phew template
https://github.com/simonprickett/pimoroni-phew-template-demo
micropython pimoroni-phew raspberry-pi-pico-w
Last synced: 17 days ago
JSON representation
Quick demo showing how to render a MicroPython list of tuples in a Pimoroni Phew template
- Host: GitHub
- URL: https://github.com/simonprickett/pimoroni-phew-template-demo
- Owner: simonprickett
- License: mit
- Created: 2024-02-16T14:22:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-16T14:31:34.000Z (9 months ago)
- Last Synced: 2024-04-14T23:32:11.634Z (7 months ago)
- Topics: micropython, pimoroni-phew, raspberry-pi-pico-w
- Language: Python
- Homepage: https://simonprickett.dev
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pimoroni Phew Template Demo
A very small demo showing how to use MicroPython code to loop over data structures in a [Pimoroni Phew](https://github.com/pimoroni/phew) template.
This has been tested on a [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) running [MicroPython v1.22.1](https://micropython.org/download/RPI_PICO_W/).
It uses UK top 10 singles data from 1983. Here's what it looks like when working:
![Front end rendering UK top 10 singles data](demo_screenshot.png)
## Installation
* Install MicroPython on the Raspberry Pi Pico W ([get the installer here](https://micropython.org/download/RPI_PICO_W/)).
* Edit `config.py` to add your WiFi SSID and password.
* Copy the following files to the root of the device (there's a few ways of doing this, you could use [Thonny](https://thonny.org/) or [mpremote](https://docs.micropython.org/en/latest/reference/mpremote.html)):
* `main.py`
* `config.py`
* `phew` (folder)
* `templates` (folder)## Running the Demo
* Having completed the above installation steps, reset the Pico W.
* It should start and connect to your WiFi and print its IP address to the MicroPython console.
* Using your browser, go to `http:///` to see the output.## How it Works
TODO explain this!