The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

Errors with sample code included with Adafruit serial jpeg camera

by mikejonesab1 on Tue Jan 22, 2013 8:35 pm

I purchased the Adafruit serial jpeg camera. When I try to compile the sample code included I get these errors:

Snapshot:67: error: 'Adafruit_VC0706' does not name a type
Snapshot.pde: In function 'void setup()':
Snapshot:97: error: 'cam' was not declared in this scope
Snapshot:104: error: 'cam' was not declared in this scope
Snapshot:116: error: 'VC0706_640x480' was not declared in this scope
Snapshot:124: error: 'VC0706_320x240' was not declared in this scope
Snapshot:125: error: 'VC0706_160x120' was not declared in this scope

I am using the Arduino IDE and I should note that when I imported the library I go this warning message:

Ignoring bad library name

"Adafruit-VC0706-Serial-Camera-Library-master" cannot be used. Library names must only use basic numbers and letters (ASCII only and no spaces, and it cannot start with a number)



Any help would be appreciated. Thanks!
mikejonesab1
 
Posts: 1
Joined: Tue Jan 22, 2013 8:27 pm

Re: Errors with sample code included with Adafruit serial jpeg camera

by adafruit_support_bill on Wed Jan 23, 2013 6:23 am

"Adafruit-VC0706-Serial-Camera-Library-master" cannot be used. Library names must only use basic numbers and letters (ASCII only and no spaces, and it cannot start with a number)

The Arduino IDE is very picky about folder names. Unfortunately it doesn't like the ones generated by Github.

First close all copies of the Adfafruit IDE, then rename the library folder to "Adafruit_VC0706" and restart the IDE. That should allow the IDE to recognize the library.
User avatar
adafruit_support_bill
 
Posts: 27992
Joined: Sat Feb 07, 2009 9:11 am