예제 #1
0
def playSelection(event):
  selection = int(tone_listbox.curselection()[0])
  if selection == 0:
    noTone(PWM1)
  elif selection < 10:
    tone(PWM1, selection*100)
  else:
    noTone(PWM1)
예제 #2
0
def playSelection(event):
  selection = int(tone_listbox.curselection()[0])
  if selection == 0:
    noTone(PWM1)
  elif selection < 10:
    tone(PWM1, selection*100)
  else:
    noTone(PWM1)
예제 #3
0
파일: piezo.py 프로젝트: lmasson/ADCS
def printselection(event):
  global mylist
  selection = int(mylist.curselection()[0])
  if selection == 0:
    noTone(PWM1)
  elif selection < 10:
    tone(PWM1, selection*100, 100)
  else:
    noTone(PWM1)