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.
2 parents c848e33 + a6d7b0a commit d5d5e71Copy full SHA for d5d5e71
Adafruit_Feather_Sense/feather_sense_sensor_demo.py
@@ -22,11 +22,13 @@
22
23
def normalized_rms(values):
24
minbuf = int(sum(values) / len(values))
25
- return math.sqrt(sum(float(sample - minbuf) *
26
- (sample - minbuf) for sample in values) / len(values))
+ return int(math.sqrt(sum(float(sample - minbuf) *
+ (sample - minbuf) for sample in values) / len(values)))
27
28
apds9960.enable_proximity = True
29
apds9960.enable_color = True
30
+
31
+# Set this to sea level pressure in hectoPascals at your location for accurate altitude reading.
32
bmp280.sea_level_pressure = 1013.25
33
34
while True:
0 commit comments