You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
zhaohe 8f6de3534c update 1 year ago
.vscode update 1 year ago
app update 1 year ago
bootloader@84d5e2f402 update 2 years ago
doc 修改蓝牙名称生成规则 2 years ago
libznordic@580f3fa2c7 v1 1 year ago
pemkey@d9e7fcf86d update 2 years ago
protocol@e5997c7581 v1 1 year ago
release V6 1 year ago
res update 2 years ago
screen_res update 1 year ago
scripter init proj 1 year ago
sdk@ce0c31496e update 1 year ago
test update 1 year ago
tools 添加心率检测算法 2 years ago
.clang-format update 1 year ago
.gitignore update 1 year ago
.gitmodules update 1 year ago
381920-110 0.5C充1C放曲线图1.xls 添加电池充放电曲线 1 year ago
README.md update 1 year ago
temp.txt v2 1 year ago

README.md

one_lead_ecg

build_app.bat        编译应用程序
build_bootloader.bat 编译bootloader
flash_with_id.bat    烧录程序携带ID


0. 调试指示灯
1. 指示灯控制
2. 读取按键
3. 串口日志


手持-蓝牙
main:
    1.启动广播
    2.初始化串口
    3.测试硬件
        按键
        指示灯
        电池电量
        

台面-蓝牙
main:
    2. 串口
    3. IO状态输出
    5. 蓝牙收发消息
        
...

  1. 调试串口修改位置
    1. 在sdk_config.h

全局状态:
    连接,未连接
    未设定,连续模式,点动模式

工作状态
    enter:
        {
            设置工作状态为未设定状态
            更新灯光效果
        }

    按键:
        {
            上报按键事件
        }

    connect:
        {
            更新灯光效果
        }
    disconnect:
        {
            更新灯光效果
        }
    state_and_mode_change:
        {
            更新灯光效果
        }
    loop:
        {
            超时休眠
            心跳报
        }


休眠状态
    按键事件--->
        切换状态到工作状态
        

按键监听:
灯光效果更新: