- package lampControl
- type DataPack struct {
- Start byte //帧起始符,恒为0x68,1字节
- Addr string //地址域,6字节,整数,大端传输
- Start2 byte //帧起始符,恒为0x68,1字节
- Ctl uint8 //控制码,1字节
- DataLen uint8 //数据域长度,1字节
- Data []byte //数据域
- Cs uint8 //Start到Cs之前的所有字节模256
- End byte //结束符号,恒为0x16,1字节
- }
|