Skip to content

Commit d5d5e71

Browse files
authored
Merge pull request #1053 from kattni/feather-sense-update
Intify sound level.
2 parents c848e33 + a6d7b0a commit d5d5e71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Adafruit_Feather_Sense/feather_sense_sensor_demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222

2323
def normalized_rms(values):
2424
minbuf = int(sum(values) / len(values))
25-
return math.sqrt(sum(float(sample - minbuf) *
26-
(sample - minbuf) for sample in values) / len(values))
25+
return int(math.sqrt(sum(float(sample - minbuf) *
26+
(sample - minbuf) for sample in values) / len(values)))
2727

2828
apds9960.enable_proximity = True
2929
apds9960.enable_color = True
30+
31+
# Set this to sea level pressure in hectoPascals at your location for accurate altitude reading.
3032
bmp280.sea_level_pressure = 1013.25
3133

3234
while True:

0 commit comments

Comments
 (0)