Arduino Serial Communication With C++

now I'm trying to do follow the program form web

and I can to compile and running the program form Visual C++ to control ON -OFF LED fo arduino board but My work is want to control back from

some data from Arduino to control program Visual C++

do you have any experience about that ?

Thx everyone :slight_smile:

In the Arduino sketch, you can write to the serial port, using Serial.print() and Serial.println().

In the C++ application, you can read from the serial port, too. At the top of the program, select the SerialPort type, and press the F1 key. You will be able to learn all about the SerialPort object, including how to read from it.

Thx bro >> I will trying to do in case click F1 and learning more about that

did you have any Easy Program for me

like I test A switch on-off from Arduino
so that the program Visual c++ can show me "A" when switch on
and show "B" when switch Off