upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for MAX5487 chip (SPI digital potentiometer) More...
The Maxim Integrated MAX5487 is a Dual, 256-Tap, Nonvolatile, SPI-Interface, Linear-Taper Digital Potentiometer. This module was tested on the Maxim Integrated MAX5487PMB1 PMOD module from the analog PMOD kit.
Public Member Functions | |
MAX5487 (int csn=-1) | |
~MAX5487 () | |
void | setWiperA (uint8_t wiper) |
void | setWiperB (uint8_t wiper) |
std::string | name () |
Static Public Attributes | |
static const uint8_t | R_WR_WIPER_A = 0x01 |
static const uint8_t | R_WR_WIPER_B = 0x02 |
MAX5487 | ( | int | csn = -1 | ) |
Instanciates a MAX5487 object
csn | to use if any, by default will use ICSP CS (-1) |
void setWiperA | ( | uint8_t | wiper | ) |
Set wiper for port A.
void setWiperB | ( | uint8_t | wiper | ) |
Set wiper for port B.
|
inline |
Return name of the component