b6b81e0268844bb9316cd4a1e847f313
编译修改 `vendorlockzhinerrk2206sample` 路径下 BUILD.gn 文件,指定 `e53_gs_example` 参与编译。
修改OpenHARMony主目录device/rockchip/rk2206/sdk_liteos目录下的BUILD.gn。该BUILD.gn文件负责编译各个组建,包括静态库e53_gs_example。具体内容如下所示: "//vendor/lockzhiner/rk2206/samples/c6_e53_gesture_sensor:e53_gs_example",
修改 device/lockzhiner/rk2206/sdk_liteos 路径下 Makefile 文件,添加 -le53_gs_example 参与编译。
hb build -f 下载cp out/rk2206/lockzhiner-rk2206/images/rk2206_db_loader.bin /mnt/e cp out/rk2206/lockzhiner-rk2206/images/Firmware.img /mnt/e 参见 https://gitee.com/Lockzhiner-Electronics/lockzhiner-rk2206-openharmony3.0lts/tree/master/vendor/lockzhiner/rk2206 运行USB线接到USB-UART 串口终端115200-8-n-1 可以看到串口打印如下信息 用手在传感器上不同方向扫过,可以看到打印不同的手势识别状态,同时对应的LED亮。 总共支持上下左右,接近远离,顺时针,逆时针,挥手9种模式。 测试出来了8中模式,最后一种挥手wave模式没有测试出来。 |