1
0
forked from dyf/APP

加入008A新产品

This commit is contained in:
liub
2026-04-02 08:45:36 +08:00
parent 2d7117b0af
commit 4391d30f86
8 changed files with 1298 additions and 39 deletions

View File

@ -975,17 +975,10 @@ import request, { baseURL } from '@/utils/request.js';
// 填充头部
dataView.setUint8(0, 0x55); // 帧头
dataView.setUint8(1, 0x02); // 帧类型:开机画面
dataView.setUint8(2, '0x' + currentPacket.toString(16).padStart(2,
'0')); // 包序号
dataView.setUint8(2, currentPacket); // 包序号
if (packetData.length == 250) {
dataView.setUint8(3, 0x01);
dataView.setUint8(4, 0xF4);
} else {
dataView.setUint8(3, 0x00);
dataView.setUint8(4, 0x64);
}
dataView.setUint16(3, packetData.length*2,false); // 包t长度
// 填充数据每个RGB565值占2字节
for (let i = 0; i < packetData.length; i++) {