I am programming a pi pico-w with a BME280 with Thonny
I found an example for it . On top of the program there was a line “import bme280”
Thonny said: no module named ‘bme280’
I did a search in Thonny Tools > Manage Packages. No result.
To check the Search function I searched on SSD1306. That worked ok.
Why was the bme280 or BME280 not found?
On Github I saw several drivers for bme280.py.
How can I upload this driver into the flash memory of the pi pico-w?
Thank you for your reply.
Sometimes I wrote on a random website that you have to copy the bme280.py to the subdirectory /lib. And after searching /lib I found that one can type in the Shell :
import sys
sys.path
[‘’, ‘/lib’, ‘/mylib’]
Because I don’t have much experience with micropython yet, it didn’t immediately dawn on me that the location of /lib is on the Pi Pico. So I did initially a search of /lib on my pc.
Now my program is working, after copying bme280.py to /lib of the Pi Pico.