Author | Matthew Schinkel - borntechi.com, copyright © 2009..2012, all rights reserved. |
Adapted-by | |
Compiler | >=2.4o |
This library controls digital potentiometer mcp4131
http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf
No dependency found
const _MCP4131_WRITE = 0b00_00
const _MCP4131_INCREMENT = 0b01_00
const MCP4131_TCON_REG = 0x04_0000
const MCP4131_WIPER_0 = 0x00_0000
const _MCP4131_DECREMENT = 0b10_00
const _MCP4131_READ = 0b11_00
const MCP4131_STATUS_REG = 0x05_0000
mcp4131_wiper'put(byte in value)
mcp4131_increment()
mcp4131_write(byte in address, byte in command, word in value, byte in mode_16_bit)
mcp4131_decrement()
mcp4131_init()
const _MCP4131_WRITE = 0b00_00
16bit
const _MCP4131_INCREMENT = 0b01_00
8bit
const MCP4131_TCON_REG = 0x04_0000
No documentation found
const MCP4131_WIPER_0 = 0x00_0000
No documentation found
const _MCP4131_DECREMENT = 0b10_00
8bit
const _MCP4131_READ = 0b11_00
constants
const MCP4131_STATUS_REG = 0x05_0000
No documentation found
mcp4131_wiper'put(byte in value)
Set the location of the wiper to change pot resistance.
mcp4131_increment()
Increment the location of the wiper to change pot resistance.
mcp4131_write(byte in address, byte in command, word in value, byte in mode_16_bit)
Send data and command to mcp4131.
mcp4131_decrement()
Decrement the location of the wiper to change pot resistance.
mcp4131_init()
Init.