Flora and conductive fabric
Moderators: adafruit_support_bill, adafruit

Flora and conductive fabric

by KimD on Sun Mar 03, 2013 5:44 pm

I'm working with the Capacitive Touch with Conductive Fabric and Flora tutorial, I've copied and pasted the entire sketch into my Arduino window. When I click on "Verify", I get the following errors:

CapacitiveSensorSketch:15: error: 'CapacitiveSensor' does not name a type
CapacitiveSensorSketch.pde: In function 'void setup()':
CapacitiveSensorSketch:22: error: 'cs_9_10' was not declared in this scope
CapacitiveSensorSketch.pde: In function 'void loop()':
CapacitiveSensorSketch:32: error: 'cs_9_10' was not declared in this scope

I've tried adding a type to
CapacitiveSensor cs_9_10 = CapacitiveSensor(9,10);
but this brings up other errors...

I've had success downloading Lux Sensor code and mixing it up with the Flora LED display code, but this one is giving me trouble.
Any ideas??
thanks!
KimD
 
Posts: 4
Joined: Sun Jan 06, 2013 10:48 pm

Re: Flora and conductive fabric

by adafruit_support_bill on Mon Mar 04, 2013 5:43 am

Looks like your Capacitive Sensor library is not installed in the correct location.
http://learn.adafruit.com/adafruit-all- ... nstall-use
User avatar
adafruit_support_bill
 
Posts: 29110
Joined: Sat Feb 07, 2009 9:11 am

Re: Flora and conductive fabric

by KimD on Mon Mar 04, 2013 6:58 pm

Oh my, you're right! I knew it had to be something simple, and I thought I'd had those libraries figured out.

thank you so much.
KimD
 
Posts: 4
Joined: Sun Jan 06, 2013 10:48 pm

Re: Flora and conductive fabric

by agustm on Tue Aug 12, 2014 6:43 am

Hello,
I could not solve this same problem.
I followed the instructions to install the libraries on a Mac, and it does appear on the Examples now. However, I still get the same error:
Any suggestion? Thanks!

CapacitiveSensorSketch:12: error: 'CapacitiveSensor' does not name a type
CapacitiveSensorSketch.pde: In function 'void setup()':
CapacitiveSensorSketch:16: error: 'cs_4_2' was not declared in this scope
CapacitiveSensorSketch.pde: In function 'void loop()':
CapacitiveSensorSketch:23: error: 'cs_4_2' was not declared in this scope
agustm
 
Posts: 4
Joined: Fri Jul 11, 2014 8:18 am

Re: Flora and conductive fabric

by adafruit_support_bill on Tue Aug 12, 2014 6:50 am

Make sure you close all instances of the Arduino IDE and then re-open it. The IDE does not recognize libraries that are installed while it is running.
User avatar
adafruit_support_bill
 
Posts: 29110
Joined: Sat Feb 07, 2009 9:11 am

Re: Flora and conductive fabric

by kristenw on Sat Aug 30, 2014 1:09 am

I've wired the circuit correctly, and I've uploaded the code from

https://learn.adafruit.com/capacitive-t ... flora/code

and I keep getting the error
"RGBPixel does not name a type"
sketch_aug30b.ino:2:33: error: Adafruit_FloraPixel.h: No such file or directory
sketch_aug30b:18: error: 'RGBPixel' does not name a type
sketch_aug30b:18: error: 'Adafruit_FloraPixel' does not name a type
sketch_aug30b.ino: In function 'void setup()':
sketch_aug30b:24: error: 'strip' was not declared in this scope
sketch_aug30b.ino: In function 'void loop()':
sketch_aug30b:38: error: 'strip' was not declared in this scope
sketch_aug30b:38: error: 'Color' was not declared in this scope
sketch_aug30b:41: error: 'strip' was not declared in this scope
sketch_aug30b:41: error: 'Color' was not declared in this scope
sketch_aug30b.ino: At global scope:
sketch_aug30b:58: error: 'RGBPixel' does not name a type


What did I do wrong?
kristenw
 
Posts: 5
Joined: Sat Nov 16, 2013 1:23 pm

Re: Flora and conductive fabric

by adafruit_support_bill on Sat Aug 30, 2014 5:04 am

sketch_aug30b.ino:2:33: error: Adafruit_FloraPixel.h: No such file or directory
sketch_aug30b:18: error: 'RGBPixel' does not name a type

The compiler was not able to find the library in the expected location. Follow the instructions here to make sure that your library is installed correctly.
http://learn.adafruit.com/adafruit-all- ... nstall-use
User avatar
adafruit_support_bill
 
Posts: 29110
Joined: Sat Feb 07, 2009 9:11 am