1 Star 0 Fork 0

DFRobot/DFRobot_utility

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
split.h 732 Bytes
一键复制 编辑 原始数据 按行查看 历史
lisper 提交于 2015-01-07 11:41 +08:00 . add serialReadCmd library
/**************************************************************************/
/*!
@file split.h
@author lisper (lisper.li@dfrobot.com)
@license LGPLv3 (see license.txt)
build command string cmdstr
Copyright (C) DFRobot - www.dfrobot.com
*/
/**************************************************************************/
#include <Arduino.h>
#define ARGV_SIZE 8
#define CMD_BUF_SIZE 64
extern uint8_t argc;
extern char cmdBuf[CMD_BUF_SIZE];
extern char *argv[ARGV_SIZE];
//
void serialReadCmd (HardwareSerial);
//split str to cmdstr by space
int split (char **cmdstr, char *str, int leng);
//split str to cmdstr by space and delimiter
int splitc (uint8_t **cmdstr, uint8_t *str, char delimiter, int leng);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dfrobot/DFRobot_utility.git
git@gitee.com:dfrobot/DFRobot_utility.git
dfrobot
DFRobot_utility
DFRobot_utility
master

搜索帮助