X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/18c9ae73f4dd170a69df03822193c3044f68f194..f19fbc14e48c967e377e9557e85806336c3b0363:/examples/noise-profile.py?ds=inline diff --git a/examples/noise-profile.py b/examples/noise-profile.py index 964dead..4084439 100755 --- a/examples/noise-profile.py +++ b/examples/noise-profile.py @@ -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