def restart_raspie(self): speech = Speech() speech.play_sound('sounds/Very_Excited_R2D2.mp3') gpio.cleanup() python = sys.executable os.execl(python, python, * sys.argv)
def shutdown(self): self.display_text('Shutting down...') speech = Speech() speech.play_sound('sounds/Sad_R2D2.mp3') os.system("shutdown now -h")
def welcome(): print "started..." speech = Speech() speech.play_sound('sounds/Processing_R2D2.mp3')