Skip to content

Commit 078437f

Browse files
committed
shorten variables
shortened variables name because "line-too-long"
1 parent 460d13d commit 078437f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AHT20_OLED/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Create library object using our Bus I2C port
1919
#i2c = busio.I2C(board.SCL, board.SDA)
20-
sensor = adafruit_ahtx0.AHTx0(i2c)
20+
aht20 = adafruit_ahtx0.AHTx0(i2c)
2121

2222

2323
#OLED
@@ -33,6 +33,6 @@
3333
splash.append(text_area)
3434

3535
while True:
36-
text_area.text = "temp: %0.1f C \nhumidity: %0.1f %%" % (sensor.temperature, sensor.relative_humidity)
36+
text_area.text = "temp: %0.1fC \nhumid: %0.1f%%" % (aht20.temperature, aht20.relative_humidity)
3737
print(text_area.text)
3838
time.sleep(1)

0 commit comments

Comments
 (0)