Skip to content

simonprickett/pimoroni-phew-template-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pimoroni Phew Template Demo

A very small demo showing how to use MicroPython code to loop over data structures in a Pimoroni Phew template.

This has been tested on a Raspberry Pi Pico W running MicroPython v1.22.1.

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

Installation

  • Install MicroPython on the Raspberry Pi Pico W (get the installer here).
  • 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 or mpremote):
    • 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://<pico w ip address>/ to see the output.

How it Works

TODO explain this!

About

Quick demo showing how to render a MicroPython list of tuples in a Pimoroni Phew template

Topics

Resources

License

Stars

Watchers

Forks