Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: api/BusIn.h
- Revision:
- 160:6870f452afa4
- Parent:
- 13:0645d8841f51
--- a/api/BusIn.h Mon Apr 14 10:30:07 2014 +0100 +++ b/api/BusIn.h Mon Apr 14 11:30:06 2014 +0100 @@ -51,7 +51,13 @@ * An integer with each bit corresponding to the value read from the associated DigitalIn pin */ int read(); - + + /** Set the input pin mode + * + * @param mode PullUp, PullDown, PullNone + */ + void mode(PinMode pull); + #ifdef MBED_OPERATORS /** A shorthand for read() */