pimoroni-pico/micropython/examples/pico_enviro
Angus Logan 1e6e68356a Add rounding to lux report to prevent unit being overwritten
Correct unit for centigrade
2023-06-23 20:27:10 +01:00
..
README.md Add link to common files 2022-09-21 15:02:13 +01:00
bme688_sensor.py Correct the Enviro+ LED pins (#430) 2022-07-07 09:24:23 +01:00
button_test.py Enviro MicroPython examples (#406) 2022-06-28 10:11:03 +01:00
enviro_all.py Add rounding to lux report to prevent unit being overwritten 2023-06-23 20:27:10 +01:00
enviro_all_basic.py Pico Enviro+: More examples. 2022-07-15 12:05:12 +01:00
enviro_all_mqtt.py Tweak MQTT setup in Enviro+ example 2022-07-20 11:43:38 +01:00
lcd.py Correct the Enviro+ LED pins (#430) 2022-07-07 09:24:23 +01:00
light.py Correct the Enviro+ LED pins (#430) 2022-07-07 09:24:23 +01:00
mic.py Correct the Enviro+ LED pins (#430) 2022-07-07 09:24:23 +01:00
particle.py Correct the Enviro+ LED pins (#430) 2022-07-07 09:24:23 +01:00

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

bme688_sensor.py

Reads from the BME688 environmental sensor and shows temperature, humidity and pressure on the display.

Button Test

button_test.py

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

enviro_all.py

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)

enviro_all_basic.py

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.py

LCD demo with bouncy balls.

Light

light.py

Reads the light/proximity sensors and displays the results on screen.

Mic

mic.py

Reads the microphone and displays a waveform on screen.

Particle

particle.py

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)

enviro_all_mqtt.py

This example reads from all the sensors on Pico Enviro+ (plus the optional particulate sensor) and posts the results into an MQTT broker.