Skip to content
Snippets Groups Projects
Commit bb39c4f7 authored by schneider's avatar schneider
Browse files

fix(ble): Use the term "pairing" in the UI

parent 747803cc
No related branches found
No related tags found
1 merge request!403fix(ble): Use the term "pairing" in the UI
Pipeline #4730 passed
...@@ -106,7 +106,7 @@ while True: ...@@ -106,7 +106,7 @@ while True:
# print confirmation value # print confirmation value
compare_value = sys_ble.get_compare_value() compare_value = sys_ble.get_compare_value()
disp.clear() disp.clear()
disp.print("BLE: Bond?", posy=0, fg=[0, 0, 255]) disp.print("BLE: Pair?", posy=0, fg=[0, 0, 255])
disp.print("Code:", posy=20, fg=[0, 255, 255]) disp.print("Code:", posy=20, fg=[0, 255, 255])
disp.print(" %06d" % compare_value, posy=40, fg=[255, 255, 255]) disp.print(" %06d" % compare_value, posy=40, fg=[255, 255, 255])
disp.print("Yes", posy=60, fg=[0, 255, 0]) disp.print("Yes", posy=60, fg=[0, 255, 0])
...@@ -122,7 +122,7 @@ while True: ...@@ -122,7 +122,7 @@ while True:
if v & buttons.BOTTOM_LEFT: if v & buttons.BOTTOM_LEFT:
sys_ble.confirm_compare_value(True) sys_ble.confirm_compare_value(True)
disp.clear() disp.clear()
disp.print("BLE Bonding", posy=0, fg=[0, 0, 255]) disp.print("BLE Pairing", posy=0, fg=[0, 0, 255])
disp.print("Please Wait", posy=40, fg=[255, 255, 255]) disp.print("Please Wait", posy=40, fg=[255, 255, 255])
disp.update() disp.update()
state = 5 state = 5
...@@ -138,7 +138,7 @@ while True: ...@@ -138,7 +138,7 @@ while True:
elif ble_event == sys_ble.EVENT_PAIRING_COMPLETE: elif ble_event == sys_ble.EVENT_PAIRING_COMPLETE:
ble_event = None ble_event = None
disp.clear() disp.clear()
disp.print("BLE Bonding", posy=0, fg=[0, 0, 255]) disp.print("BLE Pairing", posy=0, fg=[0, 0, 255])
disp.print(" Success", posy=40, fg=[0, 255, 0]) disp.print(" Success", posy=40, fg=[0, 255, 0])
disp.update() disp.update()
time.sleep(5) time.sleep(5)
...@@ -147,7 +147,7 @@ while True: ...@@ -147,7 +147,7 @@ while True:
elif state == 6: elif state == 6:
# display fail screen and wait 5 seconds # display fail screen and wait 5 seconds
disp.clear() disp.clear()
disp.print("BLE Bonding", posy=0, fg=[0, 0, 255]) disp.print("BLE Pairing", posy=0, fg=[0, 0, 255])
disp.print(" Fail", posy=40, fg=[255, 0, 0]) disp.print(" Fail", posy=40, fg=[255, 0, 0])
disp.update() disp.update()
time.sleep(5) time.sleep(5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment