pyupm_max5487 module

class pyupm_max5487.MAX5487(csn=-1)[source]

Bases: object

API for the MAX5487 SPI Digital Potentiometer.

ID: max5487

Name: Digital Potentiometer

Category: digipot

Manufacturer: maxim

Connection: spi

Link:https://www.maximintegrated.com/en/products/analog/data- converters /digital-potentiometers/MAX5487.html Maxim Integrated*MAX5487 is a dual, 256-tap, nonvolatile, SPI, linear-taper digital potentiometer. This module was tested on the Maxim IntegratedMAX5487PMB1 PMOD module from the analog PMOD kit.

C++ includes: max5487.hpp

R_WR_WIPER_A = 1L
R_WR_WIPER_B = 2L
name()[source]

std::string name()

Returns the name of the component

setWiperA(wiper)[source]

void setWiperA(uint8_t wiper)

MAX5487 object destructor, closes all IO connections no more needed as the connections will be closed when m_spi and m_csnPinCtx will go out of scope ~MAX5487 (); Sets a wiper for port A.

setWiperB(wiper)[source]

void setWiperB(uint8_t wiper)

Sets a wiper for port B.