C# read Arduino

前端 未结 1 1385
广开言路
广开言路 2020-12-20 00:59

I\'m trying to make a app that read the outgoing signals from Arduino, but I can\'t make it work in C# Windows Forms, only in the console. Is my C# Windows Forms code wrong?

相关标签:
1条回答
  • 2020-12-20 01:30

    By default, the ReadLine method will block until a line is received. Is your Arduino program sending a line? Did you close the Arduino serial monitor program while running your program?

    I would change to port.ReadChar until you verify that you are receiving characters.

    0 讨论(0)
提交回复
热议问题