def cbButton2(button_id): sim800.speakervolume(100) sim800.stopplayback() show_screen(0x000000, 0xFFFFFF, "PLAY") a = sim800.startplayback(1, 0, 100) if not a: sim800.fsrm("REC\\1.AMR") sim800.fsrm("REC\\2.AMR") sim800.fsrm("REC\\3.AMR") load() show_screen(0x000000, 0xFFFFFF, "PLAY") sim800.startplayback(1, 0, 100)
def startRecording(): global isRecording if isRecording: isRecording = False sim800.stoprecording() displayStatus("") else: # Just in case something is being played sim800.stopplayback() isRecording = True sim800.deleterecording(1) displayStatus("Recording, press A again to stop.") sim800.startrecording(1) setRecordingStatus()
def cbButton3(button_id): show_screen(0x000000, 0xFFFFFF, "STOP") sim800.stopplayback()