Created
January 6, 2018 22:43
-
-
Save samuelsonbrito/17f7d7d46d1e14a96f06d10867aa01db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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