Driver for the AT42QT1070

Revision:
2:cee8b532fc22
Parent:
1:38001f05dab3
--- a/include/at42qt1070.h	Sun Dec 20 19:38:45 2015 +0000
+++ b/include/at42qt1070.h	Tue Dec 22 21:45:00 2015 +0000
@@ -34,8 +34,6 @@
 #define AT42QT1070_I2C_BUS 0
 #define AT42QT1070_DEFAULT_I2C_ADDR 0x1b
 
-namespace upm
-{
 /**
  * @brief Atmel* AT42QT1070 QTouch* Sensor library
  * @defgroup at42qt1070 libupm-at42qt1070
@@ -126,18 +124,18 @@
         REG_DI5 = 51,
         REG_DI6 = 52,
 
-        REG_GUARD = 53, // FastOutDI/Max Cal/Guard channel
-        REG_LP = 54,    // low power
-        REG_MAXON = 55, // max on duration
+        REG_GUARD     = 53, // FastOutDI/Max Cal/Guard channel
+        REG_LP        = 54, // low power
+        REG_MAXON     = 55, // max on duration
         REG_CALIBRATE = 56,
-        REG_RESET = 57
+        REG_RESET     = 57
     } AT42QT1070_REG_T;
 
     // detection register bits
     typedef enum {
-        DET_TOUCH = 0x01,
+        DET_TOUCH     = 0x01,
         // 0x02-0x20 reserved
-        DET_OVERFLOW = 0x40,
+        DET_OVERFLOW  = 0x40,
         DET_CALIBRATE = 0x80
     } AT42QT1070_DET_T;
 
@@ -148,7 +146,7 @@
      * @param bus I2C bus to use
      * @param address Address for this sensor
      */
-    AT42QT1070(PinName sda, PinName sck, int bus, uint8_t address = AT42QT1070_DEFAULT_I2C_ADDR);
+    AT42QT1070(PinName sda, PinName sck, uint8_t address = AT42QT1070_DEFAULT_I2C_ADDR);
 
     /**
      * AT42QT1070 destructor
@@ -302,4 +300,3 @@
     mbed::I2C        _i2cPort;
     uint8_t          _addr;
 };
-}
\ No newline at end of file