You've already forked TEF6686_Driver
baud
This commit is contained in:
6
xrd.py
6
xrd.py
@@ -38,11 +38,11 @@ def freq_allowed(freq: int):
|
||||
return True
|
||||
|
||||
def init_tef():
|
||||
p = I2CPCClient(DEVICE)
|
||||
p = I2CPCClient(DEVICE, int(os.getenv("BAUD") or 0) or 115200)
|
||||
tef = TEF6686(p)
|
||||
tef.init(clock=CLOCK)
|
||||
tef.AUDIO_Set_Mute(False)
|
||||
tef.AUDIO_Set_Volume(45)
|
||||
tef.AUDIO_Set_Volume(30)
|
||||
tef.FM_Tune_To(1, INITIAL_FREQ)
|
||||
tef.FM_Set_RDS(1)
|
||||
tef.FM_Set_ChannelEqualizer(INITIAL_EQ)
|
||||
@@ -273,6 +273,6 @@ def run_server():
|
||||
except ConnectionAbortedError: break
|
||||
except BlockingIOError:
|
||||
run_periodic(tef, conn, state)
|
||||
time.sleep(0.015)
|
||||
time.sleep(0.025)
|
||||
|
||||
if __name__ == "__main__": run_server()
|
||||
Reference in New Issue
Block a user