Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import processing.serial.*;
- char inputChar=7;
- Serial commsPort;
- void setup()
- {
- commsPort=new Serial(this, Serial.list()[1],38400);
- }
- void draw()
- {
- while(mousePressed==true)
- {
- commsPort.write(inputChar);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement