File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
api_drivers/py_api_drivers/frozen/indev/touch_calibration Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ def calibrate(indev, cal_data):
109
109
target .remove_flag (lv .obj .FLAG .CHECKABLE ) # NOQA
110
110
target .remove_flag (lv .obj .FLAG .SCROLLABLE ) # NOQA
111
111
112
+ instruction_text = 'Press and hold\n red square'
112
113
for i in range (3 ):
113
114
print ('point' , i + 1 , 'of 3' )
114
115
@@ -119,7 +120,7 @@ def calibrate(indev, cal_data):
119
120
lcd_bus ._pump_main_thread () # NOQA
120
121
time .sleep_ms (2000 ) # NOQA
121
122
122
- label .set_text ('Press and hold \n red circle' )
123
+ label .set_text (instruction_text )
123
124
label .center ()
124
125
lcd_bus ._pump_main_thread () # NOQA
125
126
@@ -142,7 +143,7 @@ def calibrate(indev, cal_data):
142
143
if text_on :
143
144
label .set_text ('' )
144
145
else :
145
- label .set_text ('Press and hold \n red circle' )
146
+ label .set_text (instruction_text )
146
147
label .center ()
147
148
148
149
text_on = not text_on
@@ -209,6 +210,7 @@ def calibrate(indev, cal_data):
209
210
# else:
210
211
# mirror_y = False
211
212
213
+ # The 3 point method uses an affine transformation so mirroring should not be needed.
212
214
mirror_x = False
213
215
mirror_y = False
214
216
You can’t perform that action at this time.
0 commit comments