96aa82fcb1 | ||
---|---|---|
.. | ||
README.md | ||
balls_demo.py | ||
button_test.py | ||
calc.py | ||
co2.py | ||
rainbow.py | ||
snake.py | ||
sunrise.py | ||
thermometer.py | ||
zoo_facts.py |
README.md
Pico GFX Pack MicroPython Examples
- About Pico GFX Pack
- Pico GFX Pack and PicoGraphics
- Basic Examples
- Advanced Examples
- Wireless Examples
About Pico GFX Pack
GFX Pack adds a 128x64 LCD Matrix display to your headered Raspberry Pi Pico or PicoW, with RGBW backlight and 5 input buttons for all your display and control needs.
You'll need to download the most recent version of our MicroPython firmware for your board from the link below.
Pico GFX Pack and PicoGraphics
The easiest way to start displaying cool stuff on GFX Pack is using our GFX Pack helper module (which contains a bunch of useful shortcuts for interacting with the board) and our PicoGraphics display library which handles drawing things on the screen.
Basic Examples
Balls Demo
LCD demo with a bunch of bouncy balls!
Button Test
Shows how to read the buttons, display text and change the colour of the RGBW backlight.
Calc
This example draws a nice sine wave on the display, reminiscent of the graphical calculators from the 90s.
Rainbow
This example borrows a CircuitPython hsv to rgb function to cycle through some rainbows on GFX Pack's screen.
Snake
Basic Snake demo for GFX Pack.
- A = up
- B = down
- C = reset
- D = left
- E = right
Advanced Examples
These examples require additional hardware. We connected our breakouts using a JST-SH to JST-SH cable:
CO2
Add a SCD41 sensor breakout to your GFX Pack to make a handy CO2 detector! Press A to reset the high/low values.
Thermometer
This demo uses a BME680 or BME688 breakout to measure temperature, pressure, and humidity and display it on the GFX display.
To use the Pico's internal temperature sensor in place of the BME68x breakout, just change use_bme68x_breakout
to False
.
Wireless Examples
These wireless examples need network_manager.py
and WIFI_CONFIG.py
from the common
directory to be saved to your Pico W. Open up WIFI_CONFIG.py
in Thonny to add your wifi details (and save it when you're done).
Sunrise / Sunset
This sunrise / sunset simulator displays information from the Sunrise Sunset API, and also shows how to use a 16x16 animated sprite. Find out more about Sunrise Sunset API here: https://sunrise-sunset.org/api
Zoo Facts
Downloads a list of five zoo animals and displays their vital statistics. Find out more about Zoo Animal API here: https://zoo-animal-api.herokuapp.com/
- A = Next animal
- B = Last animal
- D = Show stats
- E = Fetch a different 5 animals