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: 28902
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: 28902
Joined: Sat Feb 07, 2009 9:11 am