Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // Example by Tom Igoe
  2.  
  3. import processing.serial.*;
  4.  
  5. // The serial port:
  6. Serial myPort;
  7.  
  8. // List all the available serial ports:
  9. println(Serial.list());
  10.  
  11. // Open the port you are using at the rate you want:
  12. myPort = new Serial(this, Serial.list()[0], 9600);
  13.  
  14. // Send a capital A out the serial port:
  15. myPort.write(65);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement