pyupm_slide module

class pyupm_slide.Slide(pin, ref_voltage=5.0)[source]

Bases: object

API for the Slide Potentiometer.

ID: slide

Name: Slide Potentiometer

Other Names: Grove Slide

Category: ainput

Manufacturer: seeed

Link:http://wiki.seeed.cc/Grove-Slide_Potentiometer/

Connection: analog Basic UPM module for the slide potentiometer on analog that returns either a raw value or a scaled voltage value.

C++ includes: slide.hpp

name()[source]

std::string name()

raw_value()[source]

float raw_value()

Gets the raw value from the AIO pin

Raw value from the ADC

ref_voltage()[source]

float ref_voltage()

Gets the board’s reference voltage passed on object initialization

Reference voltage the class was set for

voltage_value()[source]

float voltage_value()

Gets the voltage value from the pin

Voltage reading based on the reference voltage