概要 Windowsでシリアル出力をしているESP32デバイスなどを接続するとマウスが暴走することってありますよね? 暴走するとかなり辛いので対応方法を調べてみました。 原因 Windowsの標準ドライバで「Microsoft Serial BallPoint」か「 Microsoft Serial Mouse」で認識した場合に暴走する危険があります。 回避方法 レジストリ「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sermouse」に4を書き込むと回避できるみたいです。 。 。 できれば、書き込みたくないですよね? 再現スケッチ void setup() { Serial.begin(115200); } void loop() { Serial.printf("val:%d\n", rand()); } M5StickC