added beep

This commit is contained in:
Matthias@Dell 2023-07-01 16:59:54 +02:00
parent cc01663be2
commit a1b21cb26e

View File

@ -30,6 +30,8 @@ def init(beep_success=True):
if beep_success: keithley.write("beeper.beep(0.5, 1000)") if beep_success: keithley.write("beeper.beep(0.5, 1000)")
return keithley return keithley
def beep(instr, length=0.5, pitch=1000):
instr.write(f"beeper.beep({length}, {pitch})")
def exit(instr): def exit(instr):
instr.close() instr.close()