| 
    upm
    1.0.2
    
   Sensor/Actuator repository for libmraa (v1.1.1) 
   | 
 
API for the Slide Potentiometer. More...
Basic UPM module for the slide potentiometer on analog that returns either a raw value or a scaled voltage value.
Public Member Functions | |
| Slide (unsigned int pin, float ref_voltage=5.0) | |
| ~Slide () | |
| float | raw_value () | 
| float | voltage_value () | 
| float | ref_voltage () | 
| std::string | name () | 
| Slide | ( | unsigned int | pin, | 
| float | ref_voltage = 5.0  | 
        ||
| ) | 
Analog slide potentiometer constructor
| pin | Number of the analog pin to use | 
| ref_voltage | Reference voltage the board is set to, as a floating-point value; default is 5.0V | 

| float raw_value | ( | ) | 
Gets the raw value from the AIO pin

| float voltage_value | ( | ) | 
Gets the voltage value from the pin

| float ref_voltage | ( | ) | 
Gets the board's reference voltage passed on object initialization

 1.8.6