DigitalIn read

20 Mar 2018

Hey How I can read a digital Input Pin???

20 Mar 2018

Hi Patrick,

Take a look at the Mbed OS API documentation for DigitalIn, there are also code examples at the bottom of the page: https://docs.mbed.com/docs/mbed-os-api-reference/en/latest/APIs/io/DigitalIn/

- Jenny, team Mbed

28 Jun 2018

The DigitalIn constructor can be used to create digital inputs, and the read() function used to read the logical value of the input.