Esempio n. 1
0
	def update_key(self, key):
            lcd = LCD()
            if key == '1234':
                correct_code = True
                lcd.lcd_message('green','  Combination\n    Correct')
                print('You have entered the correct combination.')
                os.system('aplay 15sec.wav')
                utilities.countdown()
                return active_state()
            else:
                lcd.lcd_message('red','   Incorrect\nPlease Try Again')
                os.system('aplay InComPta.wav')
                print('Sorry. This combination is incorrect. Please try again')
                return self
Esempio n. 2
0
from Lcd import LCD

l = LCD()

l.change_color(0)
l.set_message('It work')