Advertisement
ShamelessName

writeCharonMousePress

Feb 1st, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. import processing.serial.*;
  2.  
  3. char inputChar=7;
  4. Serial commsPort;
  5.  
  6. void setup()
  7. {
  8.   commsPort=new Serial(this, Serial.list()[1],38400);
  9. }
  10.  
  11. void draw()
  12. {
  13.   while(mousePressed==true)
  14.   {
  15.     commsPort.write(inputChar);
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement