3 #include <libserial/SerialPort.h>
4 #include <libserial/SerialStream.h>
10 int main(
int argc,
char **argv)
18 LibSerial::SerialPort serial_port;
20 serial_port.Open(
"/dev/ttyACM0");
22 serial_port.SetBaudRate(LibSerial::BaudRate::BAUD_9600);
24 serial_port.SetCharacterSize(LibSerial::CharacterSize::CHAR_SIZE_8);
26 serial_port.SetFlowControl(LibSerial::FlowControl::FLOW_CONTROL_NONE);
28 serial_port.SetStopBits(LibSerial::StopBits::STOP_BITS_1);
int main(int argc, char **argv)