You are viewing an older revision! See the latest version

DigitalIn

The DigitalIn interface is used to read the value of a digital input pin.

Any of the numbered mbed pins can be used as a DigitalIn.

Hello World!

Repository: DigitalIn_HelloWorld_Mbed

API

API summary

Import librarymbed

No documentation found.

Interface

The DigitalIn Interface can be used on any pin with a blue label.

The pin input is logic '0' for any voltage on the pin below 0.8v, and '1' for any voltage above 2.0v. By default, the DigitalIn is setup with an internal pull-down resistor.

/media/uploads/chris/pinout-thumbnails.jpg
See the Pinout page for more details

To handle an interrupt, see InterruptIn


All wikipages