Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created January 30, 2018 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/f6e6a3acae2215ad116101cbaba57ee5 to your computer and use it in GitHub Desktop.
Save esmarr58/f6e6a3acae2215ad116101cbaba57ee5 to your computer and use it in GitHub Desktop.
void MainWindow::on_pushButton_2_clicked(bool checked)
{
if(arduino_esta_disponible && arduino->isWritable()){
if(checked){
arduino->write("1\n");
}
else{
arduino->write("2\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment