Skip to content

Commit e290fda

Browse files
committed
Folder restructure
1 parent e4340b1 commit e290fda

10 files changed

Lines changed: 6 additions & 2 deletions

File tree

BME280/bme280-example.py renamed to BME280/BME280/Examples/bme280-allValues.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,18 @@
1313
# Initialize sensor
1414
bme280 = BME280(i2c)
1515

16-
# Read values
16+
# Infinite loop
1717
while 1:
18+
#Read the temperature, humidity and pressure values and store them in their respective variables
1819
temp, pres, hum = bme280.readAllValues()
20+
#Calculate the altitude using the pressure read by the sensor
1921
altitude = bme280.calculateAltitude()
2022

23+
#Print the measured values, each in their own line
2124
print("Temperature: {:.2f} °C".format(temp))
2225
print("Pressure: {:.2f} hPa".format(pres))
2326
print("Humidity: {:.2f} %".format(hum))
2427
print("Altitude: {:.2f} m".format(altitude))
28+
29+
#Pause for 5 seconds
2530
time.sleep(5.0)

DRV8825/drv8825-example.py renamed to DRV8825/DRV8825/Examples/drv8825-motorRotationAndSleep.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

Qwiic/Qwiic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def __init__(self, i2c=None, address: int = 0x30, native: bool = False):
2020
self.i2c = i2c
2121
else:
2222
if uname().sysname == "esp32":
23-
print("Ude ovdje")
2423
self.i2c = I2C(0, scl=Pin(22), sda=Pin(21))
2524
else:
2625
raise Exception("Board not recognized, enter Qwiic I2C pins manually")
File renamed without changes.

img/soldered_micropython.png

689 KB
Loading

0 commit comments

Comments
 (0)