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);
}
}
#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);
}
}