• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Com ports C++ and arduino

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
If you are using MFC then the library is readily available... However! If you haven't a com port Use a CDC library...

For PC development I use Lazarus... Its as easy as VB6 and with the Synaser library it's a doddle... Anyone who knows pascal will breeze through.
 

Pommie

Well-Known Member
Most Helpful Member
Just use the serial monitor. If that doesn't work, ask a different question.

Mike.
 

gophert

Well-Known Member
Most Helpful Member
In c++? You mean with the Arduino IDE? Open the Serial Monitor from the drop-down menu. Then use Serial.begin(9600) in your code and set the Serial Monitor to the same baud rate (lower right corner) as your Serial.Begin command.

Or, if using a home brew app, then you need to push bytes from the arduino using the Serial.begin and serial.print() or println commands to send the data to some program that is receiving the data.
 

Latest threads

EE World Online Articles

Loading

 
Top