We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460d13d commit 078437fCopy full SHA for 078437f
AHT20_OLED/code.py
@@ -17,7 +17,7 @@
17
18
# Create library object using our Bus I2C port
19
#i2c = busio.I2C(board.SCL, board.SDA)
20
-sensor = adafruit_ahtx0.AHTx0(i2c)
+aht20 = adafruit_ahtx0.AHTx0(i2c)
21
22
23
#OLED
@@ -33,6 +33,6 @@
33
splash.append(text_area)
34
35
while True:
36
- text_area.text = "temp: %0.1f C \nhumidity: %0.1f %%" % (sensor.temperature, sensor.relative_humidity)
+ text_area.text = "temp: %0.1fC \nhumid: %0.1f%%" % (aht20.temperature, aht20.relative_humidity)
37
print(text_area.text)
38
time.sleep(1)
0 commit comments