some changes
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
from tef import TEF6686
|
||||
from protocol import I2CPCClient
|
||||
from driver.tef import TEF6686
|
||||
from driver.protocol import I2CPCClient
|
||||
import time
|
||||
|
||||
p = I2CPCClient("COM17")
|
||||
print(p.version())
|
||||
with TEF6686(p) as tef:
|
||||
tef.init(clock=12000000)
|
||||
tef.init()
|
||||
tef.FM_Tune_To(TEF6686.TuneTo_Mode.Preset, 9500)
|
||||
tef.AUDIO_Set_Mute(False)
|
||||
tef.AUDIO_Set_Volume(70)
|
||||
tef.FM_Set_MphSuppression(True)
|
||||
tef.FM_Set_ChannelEqualizer(True)
|
||||
tef.FM_Set_Stereo_Max(False)
|
||||
# tef.FM_Set_Specials(1)
|
||||
tef.FM_Set_Bandwidth(True)
|
||||
time.sleep(0.032)
|
||||
|
||||
Reference in New Issue
Block a user