1
0

16 bit length

This commit is contained in:
2026-02-25 16:36:57 +01:00
parent 7ddacd8545
commit e606802541
4 changed files with 189 additions and 72 deletions

View File

@@ -5,7 +5,7 @@ import time
p = I2CPCClient("COM17")
with TEF6686(p) as tef:
tef.init(clock=12000000)
tef.AM_Tune_To(1, 225)
tef.FM_Tune_To(TEF6686.TuneTo_Mode.Preset, 9500)
tef.AUDIO_Set_Mute(False)
tef.AUDIO_Set_Volume(70)
tef.FM_Set_MphSuppression(True)
@@ -14,7 +14,8 @@ with TEF6686(p) as tef:
tef.FM_Set_Bandwidth(True)
time.sleep(0.032)
while True:
status, level, usn, wam, offset, bandwidth, modulation = tef.FM_Get_Quality_Data()
if not status or not level or not usn or not wam or not offset or not bandwidth or not modulation: continue
res = tef.FM_Get_Quality_Data()
if not res: continue
status, level, usn, wam, offset, bandwidth, modulation = res
print(f"{level / 10} dbμV | {usn / 10}% USN | {wam / 10}% WAM | {offset / 10} kHz offset | {bandwidth / 10} kHz bandwidth | {modulation / 10}% modulation")
time.sleep(0.3)