PaulStoffregen / CapacitiveSensor

Detect touch or proximity by capacitve sensing
http://www.pjrc.com/teensy/td_libs_CapacitiveSensor.html
391 stars 146 forks source link

compile error with RF-Duino #14

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi there,

First of all: CapacitiveSensor is the greatest way of implementing a touch-Sensor I've seen. There are a lot of schematics with discrete parts on the net, but using almost nothing but 2 pins of a µC is fantastic!

I'm trying to use CapSense on my project with the RF-Duino. There's a problem at compile with Pin-bitmasks:

/home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:239:2: error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE sBit; // send pin's ports and bitmask ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:240:11: error: 'IO_REG_TYPE' does not name a type volatile IO_REG_TYPE *sReg; ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:241:2: error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE rBit; // receive pin's ports and bitmask ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:242:11: error: 'IO_REG_TYPE' does not name a type volatile IO_REG_TYPE *rReg; ^ Fehler beim Kompilieren.

How can they be found out?

Best regards, m00ny

PaulStoffregen commented 8 years ago

Ask the RF-Duino developers to contribute them to this library (and others).