CueCat Code Problem

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

Oh wow thanks :) let me know when he replies :)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

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.

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

Thanks for everything :) ill try it tonight

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

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?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

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.

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

Oh so I need an older version of the IDE?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

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

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

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

Oh very sorry ill try it tomorrow :)

I am new and don't know the terminology

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

You can still download 0.22 and 0.23 here:
http://arduino.cc/en/Main/Software

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

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?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

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.

fudgematico
 
Posts: 14
Joined: Mon Oct 29, 2012 6:00 pm

Re: CueCat Code Problem

Post by fudgematico »

have you got an email for the maker of the tutorial? thanks for all your help as well :)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CueCat Code Problem

Post by adafruit_support_rick »

Which tutorial? The Instructables project? No - you'll have to look there for contact info.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”