今天剛發現arduino串口通訊居然不支持Serial.end();

發布於 2025-02-17 13:18:03

1739769428145.jpg
今天剛發現arduino串口通訊居然不支持Serial.end();請問怎麼解決這個問題,我覺得這個很重要!!! 我使用的是W806

查看更多

關注者
0
被浏覽
160
2 個回答
AnatolSher
AnatolSher 認證專家 4天前
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.

小學生
小學生 4天前
我是小學生

非常感謝Anatolsher的幫助

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽