06-01-2022, 01:14 AM
[Arduino IDE demo source code for KC868-A8S]--#03-KC868-A8S_BEEP_code
Code:
/*KC868-A8S Beep code*/
const int BEEP_Pin = 2;
void setup() {
// initialize the BEEP_Pin as an output:
pinMode(BEEP_Pin, OUTPUT);
}
void loop() {
digitalWrite(BEEP_Pin, LOW);
delay(2000);
digitalWrite(BEEP_Pin, HIGH);
delay(2000);
}