Skip to content

Commit 8f2172f

Browse files
committed
2 parents 85ced79 + 174f0db commit 8f2172f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

eduponics/sht30.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
__author__ = 'Roberto Sánchez'
66
__license__ = "Apache License 2.0. https://www.apache.org/licenses/LICENSE-2.0"
77

8-
# I2C address B 0x45 ADDR (pin 2) connected to VDD
9-
DEFAULT_I2C_ADDRESS = 0x45
8+
# I2C address B 0x44 ADDR (pin 2) connected to VDD
9+
DEFAULT_I2C_ADDRESS = 0x44
1010

1111
class SHT30():
1212
"""

qa/eduponics_mini_v2_qa.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
https://github.com/STEMinds/micropython-eduponics
44
MIT License
55
Copyright (c) 2022 STEMinds
6-
76
Permission is hereby granted, free of charge, to any person obtaining a copy
87
of this software and associated documentation files (the "Software"), to deal
98
in the Software without restriction, including without limitation the rights
@@ -49,14 +48,20 @@
4948
i2c = I2C(scl=Pin(15), sda=Pin(4))
5049

5150
def test_qmp6988():
51+
print("[-] 读取 QMP6988 大气压力传感器...按 ENTER")
52+
input("[-] Reading QMP6988 Barometric pressure sensor...")
5253
qmp = qmp6988.QMP6988(i2c)
5354
temp, pressure = qmp.measure()
5455
print("Temp/Pressure: {}°C/{}Pa".format(temp, pressure))
55-
56+
print("")
57+
5658
def test_sht30():
59+
print("[-] 读取 SHT30 温湿度传感器...按 ENTER")
60+
input("[-] Reading SHT30 Temperature and humidity sensor...")
5761
sensor = sht30.SHT30(i2c=i2c)
5862
temperature, humidity = sensor.measure()
5963
print('Temperature:', temperature, 'ºC, RH:', humidity, '%')
64+
print("")
6065

6166
def test_eeprom():
6267
print("[-] 测试 EEPROM ... 准备就绪后按 Enter ...")

0 commit comments

Comments
 (0)