Skip to content

Instantly share code, notes, and snippets.

@samuelsonbrito
Created January 6, 2018 22:43
Show Gist options
  • Save samuelsonbrito/17f7d7d46d1e14a96f06d10867aa01db to your computer and use it in GitHub Desktop.
Save samuelsonbrito/17f7d7d46d1e14a96f06d10867aa01db to your computer and use it in GitHub Desktop.
@FXML
private void ligarLed(ActionEvent event) {
PrintWriter output = new PrintWriter(porta.getOutputStream());
if(led == 0){
output.print("1");
output.flush();
led = 1;
}else{
output.print("0");
output.flush();
led = 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment