Go Down

Topic: WaveShield and util.h (Read 1 time) previous topic - next topic

krashe1313

Jan 21, 2011, 04:56 pm Last Edit: Jan 21, 2011, 04:57 pm by krashe1313 Reason: 1
Sorry if this has been answered before. i promise i searched and searched.

I followed the instructions on the ladyada site and even tried this approach:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233246215

in both cases i'm to #include "util.h", which isn't found when compiled. and it's not included with the WaveShield, but that doesn't surprise me as i suspect that "util.h" is a root class, much like "math.h" is.

btw, i searched and searched for "math.h", hoping that if i found that i could figure the location of util.h out. no luck. i know it exists, as i can compile #include "math.h".

a buddy sent me a copy of a program he wrote using the WaveShield, which worked. I've seen, or rather, heard, it. so i know it works for him. soon as i open it i see:
Code: [Select]

#include <AF_Wave.h>
#include <avr/pgmspace.h>
#include <util.h>
#include <wave.h>


sure enough... util.h throws an error.

soooooo.... now what? i'm friggin' stuck! for now i can use a piezo speaker and just play some tones to represent the sound files that should play. so i can still more forward in the meantime, but at some point i'll need to figure out this WaveShield problem.

thanks for your time and help in advance,
shields (kind of a noob)


ps/fyi: i just re-installed my arduino program with the newest version available on the site.

PaulS

Your operating system? Your buddy's operating system?

On my computer, there is a util.h in the AF_Wave library.

krashe1313

#2
Jan 21, 2011, 05:32 pm Last Edit: Jan 21, 2011, 05:36 pm by krashe1313 Reason: 1
yes, sorry. i'm using a Mac with OS 10 on it here at work. he's using a PC with Windows Vista, I believe, on it.

and i was trying to use the newer WaveHC vs  AF_Wave. Maybe that's the problem.... maybe i inadvertently applied something from one version to the other.

i should go check on that...

krashe1313

Annnnnnnnnddddd.... i've just proven myself to be an idiot!  :o lol

yup. he was using the older version, i downloaded the newer libraries with out realizing he was using the older version. soooo when i tried to  build off of his example, it didn't work.

so that's a huge part of the problem. now that i know i was on the wrong track, let me see if i can get this working now.

thanks for pointing out the error of my ways!
`shields

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview