@@ -17,32 +17,32 @@ def __init__(self, addr):
1717 self .i2c_addr = addr
1818 self .bus = SMBus (1 )
1919
20- async def setInputChannelFunction (self , channel : int ):
20+ def setInputChannelFunction (self , channel : int ):
2121 self .bus .write_byte_data (self .i2c_addr , INPUT_SELECTOR .get ("SUB_ADDR" ), INPUT_SELECTOR .get (channel ))
2222
23- async def setInputGainFunction (self , gain : int ):
23+ def setInputGainFunction (self , gain : int ):
2424 self .bus .write_byte_data (self .i2c_addr , INPUT_GAIN .get ("SUB_ADDR" ), INPUT_GAIN .get (gain ))
2525
26- async def setVolumeFunction (self , volume ):
26+ def setVolumeFunction (self , volume ):
2727 if volume == "MUTE" :
2828 volume = VOLUME .get ("MUTE" )
2929 self .bus .write_byte_data (self .i2c_addr , VOLUME .get ("SUB_ADDR" ), volume )
3030
31- async def setBassGainFunction (self , gain : int ):
31+ def setBassGainFunction (self , gain : int ):
3232 self .bus .write_byte_data (self .i2c_addr , BASS_GAIN .get ("SUB_ADDR" ), BASS_GAIN .get (gain ))
3333
34- async def setMidGainFunction (self , gain : int ):
34+ def setMidGainFunction (self , gain : int ):
3535 self .bus .write_byte_data (self .i2c_addr , TREBLE_GAIN .get ("SUB_ADDR" ), TREBLE_GAIN .get (gain ))
3636
37- async def setTrebleGainFunction (self , gain : int ):
37+ def setTrebleGainFunction (self , gain : int ):
3838 self .bus .write_byte_data (self .i2c_addr , TREBLE_GAIN .get ("SUB_ADDR" ), TREBLE_GAIN .get (gain ))
3939
40- async def setSpeakerAttRFunction (self , att ):
40+ def setSpeakerAttRFunction (self , att ):
4141 if att == "MUTE" :
4242 att = SPEAKER_ATT_R .get ("MUTE" )
4343 self .bus .write_byte_data (self .i2c_addr , SPEAKER_ATT_R .get ("SUB_ADDR" ), att )
4444
45- async def setSpeakerAttLFunction (self , att ):
45+ def setSpeakerAttLFunction (self , att ):
4646 if att == "MUTE" :
4747 att = SPEAKER_ATT_L .get ("MUTE" )
4848 self .bus .write_byte_data (self .i2c_addr , SPEAKER_ATT_L .get ("SUB_ADDR" ), att )
0 commit comments