Hi all,
            
            
I'm trying to get my webcam to take a snapshot when a button connected to an Arduino is pressed. The problem is that I'm completely new to Processing (and programming for that matter)
            
I've found a nice JMyron library sketch that tells Processing to take a webcam snapshot when the mouse button is pressed which works like a charm. I've also made my Arduino ready to communicate with Processing through Firmata.
            
Now what I just can't figure out is where and how to replace the void mousePressed(){
saveFrame("####.jpg"); } command with something that will execute that command when the Arduino button is pressed.
            
Any help would be greatly appreciated!
            
            
            
            
             
              
            
 
           
 
            
           I'm trying to get my webcam to take a snapshot when a button connected to an Arduino is pressed. The problem is that I'm completely new to Processing (and programming for that matter)
I've found a nice JMyron library sketch that tells Processing to take a webcam snapshot when the mouse button is pressed which works like a charm. I've also made my Arduino ready to communicate with Processing through Firmata.
Now what I just can't figure out is where and how to replace the void mousePressed(){
saveFrame("####.jpg"); } command with something that will execute that command when the Arduino button is pressed.
Any help would be greatly appreciated!
 
              
              2  
            
 
            