Skip to content

Commit 019914d

Browse files
committed
Intify sound level.
1 parent c848e33 commit 019914d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_Feather_Sense/feather_sense_sensor_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ def normalized_rms(values):
4444
print("Acceleration: {:.2f} {:.2f} {:.2f} m/s^2".format(*lsm6ds33.acceleration))
4545
print("Gyro: {:.2f} {:.2f} {:.2f} dps".format(*lsm6ds33.gyro))
4646
print("Humidity: {:.1f} %".format(sht31d.relative_humidity))
47-
print("Sound level:", normalized_rms(samples))
47+
print("Sound level:", int(normalized_rms(samples)))
4848
time.sleep(0.3)

0 commit comments

Comments
 (0)