spandex and lint

This commit is contained in:
caternuson 2023-05-17 10:23:35 -07:00
parent 794210fea2
commit 0c51a0ffab
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 Carter N. for Adafruit Industries
// SPDX-License-Identifier: MIT
import board
import digitalio
import adafruit_si4713
@ -12,4 +15,4 @@ with open("freq_scan.dat", "w") as fp:
for f_khz in range(87500, 108000, 50):
noise = radio.received_noise_level(f_khz)
fp.write("{},{}\n".format(f_khz/1000.0, noise))
print('{0:0.3f} mhz = {1} dBuV'.format(f_khz/1000.0, noise))
print('{0:0.3f} mhz = {1} dBuV'.format(f_khz/1000.0, noise))

View file

@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 Carter N. for Adafruit Industries
// SPDX-License-Identifier: MIT
import time
import board
import digitalio
@ -130,5 +133,3 @@ while True:
if now - last_update > UPDATE_RATE:
update_display()
last_update = now