Component: Digital Potentiometer (MCP41XXX / MCP42XXX) (Analog Output)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix TSL |
| Version | 1.0 |
| Category | Analog Output |
Contents
Digital Potentiometer (MCP41XXX / MCP42XXX) component
The MCP41XXX and MCP42XXX device range supports up to 2 digital potentiometer outputs. With 256 possible output resistance values for each channel.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MCP41xxx_42xxx_Digital_Pot.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MCP41xxx_42xxx_Digital_Pot.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
SetWiper
| SetWiper | |
| Sets the value of a single wiper | |
| Index | |
| Range: 0-2 / 0=CH0, 1=CH1, 2=CH0 AND CH1 | |
| Value | |
| 256 Taps Range: 0-255 | |
| Return | |
Initialise
| Initialise | |
| Startup the SPI peripheral ready for communications. | |
| Return | |