Project
hi,
I got a project where i am using parallex propeller to play audio and video file with push buttons. Each button is for a specific audio or video file, once the button is hot it should play that file. I got a player software on parallex website but this code is just playing all files on one pin(assosiated to button) and push button is doing nothing.
That will be great if anyone can help me in this case.
I got a project where i am using parallex propeller to play audio and video file with push buttons. Each button is for a specific audio or video file, once the button is hot it should play that file. I got a player software on parallex website but this code is just playing all files on one pin(assosiated to button) and push button is doing nothing.
That will be great if anyone can help me in this case.

Comments
If you're willing to drop the video requirement, something like the AP-16+ module from Parallax would work: http://www.parallax.com/Store/Accessories/Sound/tabid/164/ProductID/697/List/0/Default.aspx?SortField=ProductName,ProductName
You'll need some sort of microcontroller (Propeller, BS2, Arduino, etc.) to interface between the buttons and the AP-16+, since the firmware isn't open for hacking.
PUB Movie(n) fat.openfile(string("taz.pmv"),"R") ' 160x120 per frame, saved as a binary file repeat i from 1 to n ' number of frames fat.readdata(pix.displaypointer,19200) fat.closefileYou'd modify it to choose a file whose name is of the form MOVIE00.PMV like this:PUB Movie(x, n) | name[3] bytemove(@name, string("MOVIE00.PMV"), 12) ' initialize file name including zero byte at the end name.byte[5] := x / 10 + "0" name.byte[6] := x // 10 + "0" fat.openfile(@name,"R") ' 160x120 per frame, saved as a binary file repeat i from 1 to n ' number of frames fat.readdata(pix.displaypointer,19200) fat.closefileInstead of having "Movie(837)" in the main method, you'd use a CASE statement like this:case movieNumber 0: Movie(0, 831) ' the 831 is the number of frames in MOVIE00.PMV. you'd need to change this based on your movie size 1: Movie(1, 888) ' same thing for MOVIE01.PMV ' ... and so on for as many movies as you needIf you want to select the movie based on a pushbutton, you'll need to provide more information about the number of pushbuttons, how they're connected, how you want them to behave if you hold the button in, etc.Generally, a pushbutton is used to start something going, in your case a movie or sound file. You'd have an IF statement that would test for the pushbutton, then execute something like the Movie call shown above. You might have several IF statements, one for each button. When the Movie call is done, your program would repeat the IF statements that test for each of the buttons in turn.