hackathon-dev #1
@ -21,9 +21,9 @@ upiwin_tmp.textout(10, 180, 'Amy was here!!!')
 | 
			
		||||
msg = {}
 | 
			
		||||
while upiwin.get_message(msg):
 | 
			
		||||
	if msg['message'] == upiwin.WM_HWBUTTONDOWN:
 | 
			
		||||
		print("Button {0} was pressed.\n".format(msg['attrs'][0])
 | 
			
		||||
		print("Button {0} was pressed.\n".format(msg['attrs'][0]))
 | 
			
		||||
	elif msg['message'] == upiwin.WM_HWBUTTONUP:
 | 
			
		||||
		print("Button {0} was released.\n".format(msg['attrs'][0])
 | 
			
		||||
		print("Button {0} was released.\n".format(msg['attrs'][0]))
 | 
			
		||||
		bn = msg['attrs'][0]
 | 
			
		||||
		if bn == 1:
 | 
			
		||||
			print("Backlight ON.\n")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user