1#!/opt/bin/lv_micropython -i 2import lvgl as lv 3import display_driver 4 5bg_color = lv.palette_lighten(lv.PALETTE.LIGHT_BLUE, 5) 6fg_color = lv.palette_darken(lv.PALETTE.BLUE, 4) 7 8qr = lv.qrcode(lv.scr_act(), 150, fg_color, bg_color) 9# Set data 10data = "https://lvgl.io" 11qr.update(data,len(data)) 12qr.center() 13# Add a border with bg_color 14qr.set_style_border_color(bg_color, 0) 15qr.set_style_border_width(5, 0) 16