UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

MAX5487 Class

Module: max5487

Maxim Integrated* MAX5487 is a dual, 256-tap, nonvolatile, SPI, linear-taper digital potentiometer. This module was tested on the Maxim Integrated MAX5487PMB1 PMOD module from the analog PMOD kit.

Item Index

Methods

MAX5487

(
  • csn
)
Number

Instantiates an MAX5487 object

Parameters:

  • csn Number

    CSN to use, if any; by default, ICSP CS (-1) is used

Returns:

Number:

setWiperA

(
  • 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.

Parameters:

  • wiper Number

    undefined

setWiperB

(
  • wiper
)

Sets a wiper for port B.

Parameters:

  • wiper Number

    undefined

name

() String

Returns the name of the component

Returns:

String: