Black Lives Matter - Action and Equality. ... Adafruit is part of the Stop Hate for Profit campaign. Adafruit is open and shipping.
0

WAV Shield playfile() Question
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

WAV Shield playfile() Question

by tcoop25 on Fri Aug 15, 2008 11:35 am

I am still trying to learn the Arduino code and have gotten stuck on some code for the WAV shield. I have a variable (var) and it is a number 1-20. I also have 20 files on my SD card labeled 1.WAV, 2.WAV, 3.WAV, etc.

I want to use the WAV shield playfile() function. How do I code it so I can do something like playfile("[val].WAV")?

Something similar to VBASIC code, playfile(val &".WAV")?

Thanks in advance for the help,

-TC

tcoop25
 
Posts: 27
Joined: Thu May 08, 2008 10:00 am

by adafruit on Fri Aug 15, 2008 3:56 pm

look at the 'pi' code

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Please be positive and constructive with your questions and comments.