Eddystone test using modified DAL
Dependencies: BLE_API mbed-dev-bin nRF51822
Dependents: microbit-eddystone
Fork of microbit-dal by
Diff: inc/drivers/MicroBitPin.h
- Revision:
- 65:f7ebabf23e15
- Parent:
- 63:b4372a29994f
- Child:
- 66:2fc7d7c2fffc
diff -r 98cb56bf7711 -r f7ebabf23e15 inc/drivers/MicroBitPin.h --- a/inc/drivers/MicroBitPin.h Wed Jul 13 12:18:43 2016 +0100 +++ b/inc/drivers/MicroBitPin.h Wed Jul 13 12:18:45 2016 +0100 @@ -95,8 +95,8 @@ { // The mbed object looking after this pin at any point in time (untyped due to dynamic behaviour). void *pin; + PinCapability capability; - uint8_t pullMode; /** * Disconnect any attached mBed IO from this pin. @@ -200,21 +200,6 @@ int getDigitalValue(); /** - * Configures this IO pin as a digital input with the specified internal pull-up/pull-down configuraiton (if necessary) and tests its current value. - * - * @param pull one of the mbed pull configurations: PullUp, PullDown, PullNone - * - * @return 1 if this input is high, 0 if input is LO, or MICROBIT_NOT_SUPPORTED - * if the given pin does not have digital capability. - * - * @code - * MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_BOTH); - * P0.getDigitalValue(PullUp); // P0 is either 0 or 1; - * @endcode - */ - int getDigitalValue(PinMode pull); - - /** * Configures this IO pin as an analog/pwm output, and change the output value to the given level. * * @param value the level to set on the output pin, in the range 0 - 1024