Processing and arduino uno
in
Integration and Hardware
•
1 year ago
Hey people...
I am trying to connect the arduino uno to the program processing, but i dont know how.
Right now a movie is looping in processing and i need to make it so that when i hit two wires together (using tin foil), the movie stops/plays/goes to another movie.
Thanks
/iDon'tKnow
I am trying to connect the arduino uno to the program processing, but i dont know how.
Right now a movie is looping in processing and i need to make it so that when i hit two wires together (using tin foil), the movie stops/plays/goes to another movie.
- import processing.video.*;
- Movie theMov;
- void setup()
- {
- size(700, 500, P2D);
- theMov = new Movie(this, "MovieTest.mov");
- theMov.loop();
- }
- void movieEvent (Movie theMov)
- {
- theMov.read();
- }
- void draw()
- {
- image(theMov, 20, 20);
- }
By the way, the two codes work separately
I really hope someone can helpThanks
/iDon'tKnow
1