4 bits creating an output voltage based on the potential divider value depending on what bits are active.
This is a 4 bit. 8 bits will give more resolution and smoother linear ramp.
Resistors can be calculated to cause a sine wave output from a linear bit change.