20#ifndef MBED_INTERFACE_DIGITALIN_H_
21#define MBED_INTERFACE_DIGITALIN_H_
31#ifdef FEATURE_EXPERIMENTAL_API
37 virtual ~DigitalIn() =
default;
38 virtual int read() = 0;
39 virtual void mode(PinMode pull) = 0;
40 virtual int is_connected() = 0;
A digital input, used for reading the state of a pin.