hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
Showing only changes of commit 351e2a2b47 - Show all commits

View File

@ -21,9 +21,9 @@ upiwin_tmp.textout(10, 180, 'Amy was here!!!')
msg = {} msg = {}
while upiwin.get_message(msg): while upiwin.get_message(msg):
if msg['message'] == upiwin.WM_HWBUTTONDOWN: 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: 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] bn = msg['attrs'][0]
if bn == 1: if bn == 1:
print("Backlight ON.\n") print("Backlight ON.\n")