How to find specific Teensy in COM list

独自空忆成欢 提交于 2020-01-07 04:38:10

问题


I am new to this so my first project is making a Skype notification cube from a TeensyLC and some LEDs. I know I can hard-code the COM port for communications but if I unplug it and use a different plug my COM port changes. I'd like to be able to plug the board in and have the software find it automatically.

[Edit]

It looks like I didn't express myself well the first time, so let me try this again. If I call SerialPort.GetPortNames() I get an array of {"COM1", "COM2", "COM3"}. If I make a new SerialPort() using those names the properties are all the same. There's nothing I can see to differentiate my TeensyLC from any other COM port.

What is the best way to find my Teensy board without knowing the COM port?

来源:https://stackoverflow.com/questions/45306005/how-to-find-specific-teensy-in-com-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!