Again, the basic example from the library should work as is without any code changes. This is no different than what the BME280 primary guide has you do here:
With the bme280_simpletest.py example running, the output should look like this:
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable. code.py output: Temperature: 19.3 C Humidity: 46.9 % Pressure: 1014.0 hPa Altitude = -6.30 meters Temperature: 19.3 C Humidity: 46.8 % Pressure: 1014.0 hPa Altitude = -6.17 meters
Text editor powered by tinymce.