CueCat Code Problem
Moderators: adafruit_support_bill, adafruit

Re: CueCat Code Problem

by fudgematico on Wed Oct 31, 2012 2:31 pm

Oh wow thanks :) let me know when he replies :)
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Thu Nov 01, 2012 3:21 am

Bill's response:
It looks like CueCat is based on the first version of WaveRP which was posted over three years ago. This version of WaveRP was posted for comments before the first beta of WaveRP and before SdFat was a separate library.

CueCat could be modified to use new versions of WaveRP and SdFat but it would require good programming skill.


The original release of WaveRP is still available for download here:
http://code.google.com/p/waverp/downloads/list

There are two library folders to install, WaveRP and SdFat. SdFat contains the elusive PgmPrint.h file.

See if it works for you.
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: CueCat Code Problem

by fudgematico on Thu Nov 01, 2012 6:30 am

Thanks for everything :) ill try it tonight
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by fudgematico on Thu Nov 01, 2012 6:48 pm

It appears to have solved the 'PgmPrint.h' Problem but now it says:

no matching function for call to 'WaveRP::play(SdFIle&)'

And the error log:

cucatlog.cpp: In function 'void playFile(char*)':
cucatlog.pde:-1: error: no matching function for call to 'WaveRP::play(SdFile&)'
C:\Users\Fudgematico\Downloads\arduino-1.0.1\libraries\WaveRP/WaveRP.h:125: note: candidates are: bool WaveRP::play(SdBaseFile*)
cucatlog.cpp: In function 'void setup()':
cucatlog.pde:-1: error: 'class SdFile' has no member named 'create'
cucatlog.cpp: In function 'void loop()':
cucatlog.pde:-1: error: 'class SdFile' has no member named 'writeByteError'
cucatlog.pde:-1: error: 'class SdFile' has no member named 'writeByteError'

Is this a simple solution?
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Fri Nov 02, 2012 1:07 pm

It compiles for me in Arduino 0.22. Are you sure you have the right SdFat and WaveRP libraries installed? You should have the ones from 2009. Make sure there aren't any other versions in your libraries folder. After you install the libraries, you should restart the Arduino IDE.
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: CueCat Code Problem

by fudgematico on Fri Nov 02, 2012 3:51 pm

Oh so I need an older version of the IDE?
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Fri Nov 02, 2012 5:33 pm

Sorry - I think I got you confused with another thread. I thought you were already using an older version of the IDE. :oops:

But, yes. If you don't want to have to modify the libraries, you're going to have to use an older version of the IDE. I happen to have 0.22, but 0.23 should also work.

I did try it with v1.0.1. I get errors, but not at all the same errors you're seeing. The only errors I get are consistent with using old libraries in the new IDE:
Code: Select all | TOGGLE FULL SIZE
In file included from /ricklesniak/Documents/Arduino/libraries/WaveRP/WaveRP.h:22,
                 from cucatlog.cpp:1:
/ricklesniak/Documents/Arduino/libraries/SdFat/SdFat.h:242: error: conflicting return type specified for 'virtual void SdFile::write(uint8_t)'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
In file included from cucatlog.cpp:5:
/ricklesniak/Documents/Arduino/libraries/SdFat/PgmPrint.h: In function 'void PgmSerialPrint(const char*)':
/ricklesniak/Documents/Arduino/libraries/SdFat/PgmPrint.h:10: error: 'Serial' was not declared in this scope
/ricklesniak/Documents/Arduino/libraries/SdFat/PgmPrint.h: In function 'void PgmSerialPrintln(const char*)':
/ricklesniak/Documents/Arduino/libraries/SdFat/PgmPrint.h:15: error: 'Serial' was not declared in this scope
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: CueCat Code Problem

by fudgematico on Fri Nov 02, 2012 5:43 pm

Oh very sorry ill try it tomorrow :)

I am new and don't know the terminology
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Fri Nov 02, 2012 5:46 pm

You can still download 0.22 and 0.23 here:
http://arduino.cc/en/Main/Software
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: CueCat Code Problem

by fudgematico on Sun Nov 04, 2012 5:12 pm

Thanks for you help :) I got everything to upload

The only thing now is that when I plug in everything I load up the IDE and run the Serial Monitor

I try to scan but nothing happens? is that a Cuecat fault or a board fault, because the Cuecat's red light comes on?
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Sun Nov 04, 2012 6:44 pm

I can't help you there. I've never heard of a cuecat before. I don't know what it does, or what this project is supposed to do. You'll really have to contact the author of the instructables project.
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: CueCat Code Problem

by fudgematico on Mon Nov 05, 2012 6:56 pm

have you got an email for the maker of the tutorial? thanks for all your help as well :)
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 5:00 pm

Re: CueCat Code Problem

by adafruit_support_rick on Wed Nov 07, 2012 10:43 am

Which tutorial? The Instructables project? No - you'll have to look there for contact info.
User avatar
adafruit_support_rick
 
Posts: 11529
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY