Solution for Bluetooth SIG hands-on training course

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Dependents:   microbit

Fork of microbit-dal-bluetooth-mdw_starter by Martin Woolley

Revision:
45:23b71960fe6c
Parent:
37:b624ae5e94a5
Child:
49:88f03f3feff1
--- a/source/drivers/MicroBitPin.cpp	Wed Jul 13 12:18:23 2016 +0100
+++ b/source/drivers/MicroBitPin.cpp	Wed Jul 13 12:18:24 2016 +0100
@@ -43,7 +43,7 @@
   * @param name the mbed PinName for this MicroBitPin instance.
   *
   * @param capability the capabilities this MicroBitPin instance should have.
-  *                   (PIN_CAPABILITY_DIGITAL, PIN_CAPABILITY_ANALOG, PIN_CAPABILITY_TOUCH, PIN_CAPABILITY_AD, PIN_CAPABILITY_ALL)
+  *                   (PIN_CAPABILITY_DIGITAL, PIN_CAPABILITY_ANALOG, PIN_CAPABILITY_AD, PIN_CAPABILITY_ALL)
   *
   * @code
   * MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_ALL);
@@ -332,7 +332,7 @@
 int MicroBitPin::isTouched()
 {
     //check if this pin has a touch mode...
-    if(!(PIN_CAPABILITY_TOUCH & capability))
+    if(!(PIN_CAPABILITY_DIGITAL & capability))
         return MICROBIT_NOT_SUPPORTED;
 
     // Move into a touch input state if necessary.