C++ (Qt)QString str=QString::number(1)+QString::number(ui->horizontalSlider_servo1->value())+char(13);QByteArray data2; port->write(data2.append(str));
C++ (Qt)...QByteArray data;data = QString("1%1").arg(ui->horizontalSlider_servo1->value()).toLocal8bit();data.append('\r');...