Smart Home Automation Forum

Full Version: [Arduino IDE demo source code for KC868-A6]--#03-DAC_code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Arduino IDE demo source code for KC868-A6]--#03-DAC_code

Code:
/*KC868-A6 DAC CODE*/
#define DAC1 26
#define DAC2 25

void setup() {
 
}

void loop() {
  int Value = 127; //255= 10V
 
  dacWrite(DAC1, 127);
  delay(500);
  dacWrite(DAC2, 255);
  delay(500);
}

[attachment=871]