acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_example_qrcode_1.py (404B)
1 #!/opt/bin/lv_micropython -i 2 import lvgl as lv 3 import display_driver 4 5 bg_color = lv.palette_lighten(lv.PALETTE.LIGHT_BLUE, 5) 6 fg_color = lv.palette_darken(lv.PALETTE.BLUE, 4) 7 8 qr = lv.qrcode(lv.scr_act(), 150, fg_color, bg_color) 9 # Set data 10 data = "https://lvgl.io" 11 qr.update(data,len(data)) 12 qr.center() 13 # Add a border with bg_color 14 qr.set_style_border_color(bg_color, 0) 15 qr.set_style_border_width(5, 0)