예제 #1
0
def mute():
    uart.write(cmd.set_volume(0))
예제 #2
0
def unmute():
    global volume_level
    uart.write(cmd.set_volume(volume_level))
예제 #3
0
def set_volume(level):
    global volume_level
    volume_level = level
    uart.write(cmd.set_volume(level))
예제 #4
0
 def volume(self, level):
     """ Level from 0 To 30 """
     self.player.write(yx5300.set_volume(level))