AnalogIn Hello World

Dependencies:   mbed

Homepage

Table of Contents

  1. Use
  2. API

Use

The AnalogIn API is useful for checking the level of an analog input. The value read from the input is between 0.000 and 1.000 . This number represents a percentage of the input reference voltage. For example, a reading of 0.3 with an input voltage of 3.3V would mean the input is 30% of 3.3V or 0.99V . If in the input was 5V then a reading of 0.3 would mean 0.3*5=1.5V .

API

API reference.

Import librarymbed

No documentation found.

All wikipages