API for the MAX5487 SPI Digital Potentiometer.
More...
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.
for (int i = 0; i < 255; i++) {
sensor.setWiperA(i);
upm_delay_us(5000);
}
for (int i = 0; i < 255; i++) {
sensor.setWiperA(255 - i);
upm_delay_us(5000);
}
|
static const uint8_t | R_WR_WIPER_A = 0x01 |
|
static const uint8_t | R_WR_WIPER_B = 0x02 |
|
Instantiates an MAX5487 object
- Parameters
-
csn | CSN to use, if any; by default, ICSP CS (-1) is used |
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.
void setWiperB |
( |
uint8_t |
wiper | ) |
|
Returns the name of the component
The documentation for this class was generated from the following files: