|
如图,我将B2B3设置为串口,将ESP32的UART2和LD3322的B2B3相连,我想通过ESP32给LD3322串口发消息然后时LD3322播报语音,测试消息为AA 55 01 01 55 AA,代码如下unsigned char hexdataopen[]={0xAA,0x55,0x01,0x01,0x55,0xAA};
void setup() {
Serial2.begin(115200);
}
void loop() {
for(int i=0;i<6;i++)
Serial2.write(hexdataopen[i]);
delay(5000);
}
但无法触发相应播报
|
|