libmDot0mbed5
Fork of libmDot-mbed5 by
Diff: mDot.h
- Revision:
- 5:0bfe6a650513
- Parent:
- 4:94969e981dcc
- Child:
- 6:390fc83d588d
diff -r 94969e981dcc -r 0bfe6a650513 mDot.h --- a/mDot.h Tue Jun 30 16:18:24 2015 -0500 +++ b/mDot.h Tue Jul 07 14:32:54 2015 -0500 @@ -70,6 +70,7 @@ DigitalOut* _activity_led; bool _activity_led_enable; PinName _activity_led_pin; + bool _activity_led_external; uint16_t _linkFailCount; typedef enum { @@ -218,6 +219,12 @@ */ void setActivityLedPin(const PinName& pin); + /** Use an external DigitalOut object for the activity LED. + * The pointer must stay valid! + * @param pin the DigitalOut object to use + */ + void setActivityLedPin(DigitalOut* pin); + /** Find out what pin the activity LED is on * @returns the pin the activity LED is using */