今天刚发现arduino串口通讯居然不支持Serial.end();

发布于 2025-02-17 13:18:03

1739769428145.jpg
今天刚发现arduino串口通讯居然不支持Serial.end();请问怎么解决这个问题,我觉得这个很重要!!! 我使用的是W806

查看更多

关注者
0
被浏览
375
2 个回答
AnatolSher
AnatolSher 认证专家 2025-02-17
Lover of the ocean, yachts and Arduino

Hi. The lack of Serial.End() method is not critical in most cases. Its work is to deinitialize the hardware UART and release the controller pins that were connected to it.
It should be noted that the HardwareSerial class is static and calling the End() method does not free RAM. It is not difficult to add support for this method, but I would like to know how you want to use it.

小学生
小学生 2025-02-17
我是小学生

非常感谢Anatolsher的帮助

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览