Added supported board images and example
[EVA-2020-02-2.git] / examples / noise-profile.py
index 964deadb06e969833e23ef7a5924ade1aa7edbe2..40844391b84544cadbf154985782f5d52f3d63c6 100755 (executable)
@@ -13,11 +13,11 @@ Press Ctrl+C to exit!
 noise = Noise()
 
 disp = ST7735.ST7735(
-        port=0,
-        cs=ST7735.BG_SPI_CS_FRONT,
-        dc=9,
-        backlight=12,
-        rotation=90)
+    port=0,
+    cs=ST7735.BG_SPI_CS_FRONT,
+    dc=9,
+    backlight=12,
+    rotation=90)
 
 disp.begin()
 
@@ -26,7 +26,7 @@ draw = ImageDraw.Draw(img)
 
 
 while True:
-    low, mid, high, amp = noise.measure()
+    low, mid, high, amp = noise.get_noise_profile()
     low *= 128
     mid *= 128
     high *= 128