问题
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