…
|
||
---|---|---|
.. | ||
README.md | ||
bme688_sensor.py | ||
button_test.py | ||
enviro_all.py | ||
enviro_all_basic.py | ||
enviro_all_mqtt.py | ||
lcd.py | ||
light.py | ||
mic.py | ||
particle.py |
README.md
Pico Enviro+ MicroPython Examples
PicoGraphics
You can draw on Pico Enviro+'s display using our tiny PicoGraphics display library.
BME688
The 4-in-1 BME688 environmental sensor on Pico Enviro+ measures temperature, humidity, pressure and gas.
PMS5003 Particulate Sensor
The examples that use the optional particulate sensor require separate drivers - you can install them from PyPi by searching for 'pms5003-micropython' in Thonny's 'Tools > Manage Packages'
Non-Wireless Examples
BME688 sensor
Reads from the BME688 environmental sensor and shows temperature, humidity and pressure on the display.
Button Test
This example shows you a simple, non-interrupt way of reading Pico Enviro+'s buttons with a loop that checks to see if buttons are pressed.
Enviro All
An advanced example that reads from all the sensors on Pico Enviro+ (including the particulate sensor) and displays the results on screen. Press A and B to turn the backlight on and off, and press X and Y to switch between sensor mode and graphic equaliser mode!
Enviro All (Basic)
This basic example shows how to read from all the sensors on Pico Enviro+ (plus the optional particulate sensor). Prints results to the REPL only.
LCD
LCD demo with bouncy balls.
Light
Reads the light/proximity sensors and displays the results on screen.
Mic
Reads the microphone and displays a waveform on screen.
Particle
Reads from the (optional) particulate sensor and displays the results on screen.
Wireless Examples
The wireless examples need network_manager.py
and WIFI_CONFIG.py
from the micropython/examples/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).
For MQTT, you'll need to install micropython-mqtt.simple
using Thonny's 'Tools' > 'Manage Packages'.
Enviro All (MQTT)
This example reads from all the sensors on Pico Enviro+ (plus the optional particulate sensor) and posts the results into an MQTT broker.