A simple Arduino Library for X9C series Digitally Controlled Potentiometer
- Arduino nano ESP32
- Arduino nano
- X9C102
- X9C103
- X9C104
- X9C503
- Put "X9C.h" and "X9C.cpp" in your project folder
- Include "X9C.h" in your code
- Create a X9C instance. For example, X9C* resistor = new X9C(CS_PIN, INC_PIN, UD_PIN);
- Control resistor value using X9C::setPos() function. For example, resistor->setPos(50).