Class header for the AT42QT1010 device.

Dependents:   AT42QT1010_Hello_world

Revision:
2:401cf3c2dffc
Parent:
1:7eca199a5506
--- a/AT42QT1010.h	Thu Oct 16 17:54:05 2014 +0000
+++ b/AT42QT1010.h	Mon Oct 20 21:42:49 2014 +0000
@@ -23,7 +23,11 @@
     /**Initiate interrupts for the rising edge of data.
     @param fpr Function pointer to interrupt routine.
     */
-        void attach(void (*fpr)(void));
+        void attach_rise(void (*fpr)(void));
+        /**Initiate interrupts for the falling edge of data.
+    @param fpr Function pointer to interrupt routine.
+    */
+        void attach_fall(void (*fpr)(void));
     private:
         InterruptIn _data;
         DigitalOut *_led_state;
@@ -54,8 +58,11 @@
     return _data;
 }
 
-void AT42QT1010::attach(void (*fpr)(void)){
+void AT42QT1010::attach_rise(void (*fpr)(void)){
     _data.rise(fpr);
 }
+void AT42QT1010::attach_fall(void (*fpr)(void)){
+    _data.fall(fpr);
+}
 
 #endif
\ No newline at end of file