Browse Source

add:添加新二维码

Dozingfiretruck 4 years ago
parent
commit
0cc9e8d42f
2 changed files with 6 additions and 1 deletions
  1. 2 1
      app/port/luat_conf_bsp.h
  2. 4 0
      xmake.lua

+ 2 - 1
app/port/luat_conf_bsp.h

@@ -52,7 +52,7 @@
 #define LUAT_USE_CJSON  1
 #define LUAT_USE_ZBUFF  1
 #define LUAT_USE_PACK  1
-#define LUAT_USE_GNSS  1
+#define LUAT_USE_LIBGNSS  1
 #define LUAT_USE_FS  1
 #define LUAT_USE_SENSOR  1
 #define LUAT_USE_SFUD  1
@@ -92,6 +92,7 @@
 // UI
 // LCD  是彩屏, 若使用LVGL就必须启用LCD
 #define LUAT_USE_LCD
+#define LUAT_USE_QRCODE
 #define LUAT_USE_TJPGD
 // EINK 是墨水屏
 #define LUAT_USE_EINK

+ 4 - 0
xmake.lua

@@ -327,6 +327,10 @@ target("air10x")
     add_includedirs(luatos.."components/ymodem",{public = true})
     add_files(luatos.."components/ymodem/*.c")
 
+    -- qrcode
+    add_includedirs(luatos.."components/qrcode",{public = true})
+    add_files(luatos.."components/qrcode/*.c")
+
 	after_build(function(target)
         sdk_dir = target:toolchains()[1]:sdkdir().."/"
         os.exec(sdk_dir .. "bin/csky-elfabiv2-objcopy -O binary $(buildir)/out/"..TARGET_NAME..".elf $(buildir)/out/"..TARGET_NAME..".bin")