1 Star 2 Fork 1

uncommon_ljl/grbl_controller_esp32

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
com.h 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef communication_h
#define communication_h
#include "Arduino.h"
#define STR_GRBL_BUF_MAX_SIZE 80 // size has been increased from 10 to 60 to support grbl [Msg:] Longest is [GC:....] message
void getFromGrblAndForward( void ) ; //get char from GRBL, forward them is statusprinting = PRINTING_FROM_PC and decode the data (look for "OK", for <xxxxxx> sentence
// fill machineStatus[] and mPosXYZ[]
void parseToLog(uint8_t c , uint8_t lastC) ; // do not store in log the OK and the status message.
void handleLastNumericField(void) ;
void storeGrblState(void) ;
void sendToGrbl( void ) ;
void sendFromSd(void) ;
void sendFromCmd() ;
void sendFromString() ;
void sendJogCancelAndJog(void) ;
boolean sendJogCmd(uint32_t startTime ) ; // parameter is the original time (millis) when we start a ; return true if cmd has been sent
void resetWaitOkWhenSdMillis() ;
void fillErrorMsg( const char * errorMsg ) ;
void fillAlarmMsg( const char * alarmMsg ) ;
void fillStringExecuteMsg( uint8_t buttonMessageIdx ) ;
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/uncommon_ljl_admin/grbl_controller_esp32.git
git@gitee.com:uncommon_ljl_admin/grbl_controller_esp32.git
uncommon_ljl_admin
grbl_controller_esp32
grbl_controller_esp32
master

搜索帮助