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.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: DigitalIn.h
- Revision:
- 85:024bf7f99721
- Parent:
- 81:7d30d6019079
--- a/DigitalIn.h Mon May 19 18:14:09 2014 +0100
+++ b/DigitalIn.h Wed Jun 11 15:14:05 2014 +0100
@@ -50,7 +50,7 @@
*
* @param pin DigitalIn pin to connect to
*/
- DigitalIn(PinName pin) {
+ DigitalIn(PinName pin) : gpio() {
gpio_init_in(&gpio, pin);
}
@@ -59,7 +59,7 @@
* @param pin DigitalIn pin to connect to
* @param mode the initial mode of the pin
*/
- DigitalIn(PinName pin, PinMode mode) {
+ DigitalIn(PinName pin, PinMode mode) : gpio() {
gpio_init_in_ex(&gpio, pin, mode);
}
/** Read the input, represented as 0 or 1 (int)
