feat(box3): larger QR for camera decode
This commit is contained in:
@@ -25,9 +25,10 @@ esp_err_t stimulus_init(void) {
|
||||
s_qr_screen = lv_obj_create(NULL);
|
||||
lv_obj_set_style_bg_color(s_qr_screen, lv_color_white(), 0);
|
||||
|
||||
// 200 px QR, dark on white — high contrast for the OV3660 camera.
|
||||
// 220 px QR (BOX-3 LCD is 320x240) — fills the screen height while the
|
||||
// white background still provides the quiet zone quirc needs.
|
||||
s_qr = lv_qrcode_create(s_qr_screen);
|
||||
lv_qrcode_set_size(s_qr, 200);
|
||||
lv_qrcode_set_size(s_qr, 220);
|
||||
lv_qrcode_set_dark_color(s_qr, lv_color_black());
|
||||
lv_qrcode_set_light_color(s_qr, lv_color_white());
|
||||
lv_qrcode_update(s_qr, "zacus", 5);
|
||||
|
||||
Reference in New Issue
Block a user