1 Star 0 Fork 21

niubileni / cw_esp32_ble_weapp

forked from FredyXu / cw_esp32_ble_weapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
var_settings.h 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
FredyXu 提交于 2020-12-18 14:53 . 版本更新
#ifndef _VAR_SETTINGS_H
#define _VAR_SETTINGS_H
// 设置参数
// 滴的最长时长,单位毫秒
int s_u_time = 50;
// 防止抖动的忽略时间,少于这个时间的按压会忽略。单位:毫秒
int s_shake_time = 30;
// 播放电码的单位时长
int s_play_u_time = 120;
// 蜂鸣器频率
int s_bee_freq = 1800;
// 电键类型
// true 手动建
// false 自动键
bool s_key_type = false;
// 按键方向
// true 左嘀,右嗒; false 反向
bool s_auto_key_type = false;
// 是否自动发送
bool s_auto_send = false;
// 自动发送电码的间隔时长
int s_auto_send_time = 2000;
// 字母间隔时长
int s_split_time = 300;
// 是否启用触摸电键
bool s_touch_key = true;
// 触摸阈值
int s_touch_val = 20;
// 字母,单词间隔时间变量
unsigned long cs_time = 0;
// 播放标识符,true可以播放,false停止播放
bool flag_play_code = true;
// 检查空格标识
bool flag_space = false;
// 空格次数
bool flag_space_times = true;
// 是否检查发送
bool flag_send = false;
// 单词敲击的记录开始符号
bool flag_rcd = false;
// 严格模式
bool s_exa_mode = true;
// 点划比例
float s_di_da_scale = 3.0;
// 容错比例
float s_fault_rate = 0.10;
// 需要播放的电码
String var_code_list = "";
// 要发送的蓝牙信息
String var_ble_msg = "";
#endif
C
1
https://gitee.com/niubileni/cw_esp32_ble_weapp.git
git@gitee.com:niubileni/cw_esp32_ble_weapp.git
niubileni
cw_esp32_ble_weapp
cw_esp32_ble_weapp
master

搜索帮助