Capacitive Sensing Library

Hi,

I have problem with Capacitive Sensing Library . I think I but the library in the correct way bec. I can see it in the IDE and I can see the examples. But when I try to use the examples in the library. it give me an error

CapacitiveSensorSketch:12: error: 'CapacitiveSensor' does not name a type

CapacitiveSensorSketch:13: error: 'CapacitiveSensor' does not name a type

CapacitiveSensorSketch:14: error: 'CapacitiveSensor' does not name a type

CapacitiveSensorSketch.pde: In function 'void setup()':

CapacitiveSensorSketch:18: error: 'cs_4_2' was not declared in this scope

CapacitiveSensorSketch.pde: In function 'void loop()':

CapacitiveSensorSketch:25: error: 'cs_4_2' was not declared in this scope

CapacitiveSensorSketch:26: error: 'cs_4_6' was not declared in this scope

CapacitiveSensorSketch:27: error: 'cs_4_8' was not declared in this scope

did I do samething wrong??

moh'd shrooqi

I think I but the library in the correct way bec. I can see it in the IDE and I can see the examples.

Clearly not, or the compiler would be able to find it, too. One of the dumb things that the Arduino team did with 1.0.1+ was to disable the message about the failure to find an include file.

Since there are messages about what should be in the include file shown, the inference is that you are using 1.0.1+ and there is no message about the inability to open the specified include file.

Of course, this raises the question as to why you are using 1.0.0+ to deal with a .pde file, since they are pre-1.0 files.

The conclusion seems to be that you are using a pre-1.0 sketch and library in 1.0.1+. Don't do that unless you've made sure that all libraries are compatible with 1.0+.

Do tell us what version of the IDE you are using when you have problems.