Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A6]--#03-DAC_code - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22)
+--- Thread: [Arduino IDE demo source code for KC868-A6]--#03-DAC_code (/showthread.php?tid=1861)



[Arduino IDE demo source code for KC868-A6]--#03-DAC_code - KinCony Support - 04-25-2022

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


.zip   3.DAC.zip (Size: 573 bytes / Downloads: 263)