Toll-Free Customer Support 24/7

I2C 12 bit DAC

 

#include <MCP4725.h>

MCP4725 dac(SDA, SCL);

void setup(void)
{
dac.begin();
}

void loop(void)
{
for (float v = 0; v <= MAX_VOLTAGE ; v+=(MAX_VOLTAGE / 10))
{
dac.setVoltage(v);
delay(3000);
}
}

Back to top