def mute(): uart.write(cmd.set_volume(0))
def unmute(): global volume_level uart.write(cmd.set_volume(volume_level))
def set_volume(level): global volume_level volume_level = level uart.write(cmd.set_volume(level))
def volume(self, level): """ Level from 0 To 30 """ self.player.write(yx5300.set_volume(level))