Iinital commit

This commit is contained in:
2025-08-29 09:05:38 +02:00
commit 777784b06e
5 changed files with 236 additions and 0 deletions

15
main.py Normal file
View File

@@ -0,0 +1,15 @@
import pycom
import time
from machine import I2C
from bme280 import BME280
i2c = I2C(0)
sensor_bme280 = BME280(i2c = i2c)
while True:
bme280_data = sensor_bme280.read_compensated_data()
temp = bme280_data[0] / 100
pressure = bme280_data[1] / 25600
humidity = bme280_data[2] / 1024
print(humidity)
time.sleep(1)