Class Ds3502
Represents a DS3502 digital potentiometer
Assembly: Ds3502.dll
View Source
public class Ds3502 : II2cPeripheral
Implements:
Meadow.Hardware.II2cPeripheral
Properties
DefaultI2cAddress
The default I2C address for the peripheral
View Source
public byte DefaultI2cAddress { get; }
DefaultBusSpeed
Default I2C bus speed
View Source
public static I2cBusSpeed DefaultBusSpeed { get; }
Fields
i2cComms
I2C Communication bus used to communicate with the peripheral
View Source
protected readonly II2cCommunications i2cComms
Methods
GetWiper()
Get the current wiper value
View Source
public byte GetWiper()
Returns
System.Byte
: the 7-bit wiper value### SetWiper(byte)
Set the wiper value
View Source
public void SetWiper(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | wiper value (0-127) |
SetWiperDefault(byte)
Set the default wiper value
View Source
public Task SetWiperDefault(byte value)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | wiper value (0-127) |
Implements
Meadow.Hardware.II2cPeripheral