C++ to Boebot
Rayderon
Posts: 7
Hi guys,
anyone knows of any example codes that opens up a serial port communication with the C++? i need to output data from a C++ program to Boebot. Thanks!
anyone knows of any example codes that opens up a serial port communication with the C++? i need to output data from a C++ program to Boebot. Thanks!
Comments
The BoeBot has either a serial port (DB9) or a USB port that includes a USB to serial adapter depending on what you bought. In either case, the BoeBot looks like a serial port to the PC.
Your C++ program just has to open a serial port and you have to select whichever serial port belongs to the BoeBot when it's plugged in. Your C++ program sends characters to the BoeBot's Stamp and the program in the Stamp receives those characters using SERIN or DEBUGIN statements and makes sense of them however you want. The Stamp can send characters back to the PC using SEROUT or DEBUG statements.