Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
Last active November 7, 2022 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neosarchizo/54f52217c8d0d9a6576a46f5fc559f8c to your computer and use it in GitHub Desktop.
Save neosarchizo/54f52217c8d0d9a6576a46f5fc559f8c to your computer and use it in GitHub Desktop.
DSLogic - 펄스 디버깅하기
#define PIN_S 8
#define INTERVAL_MS 1
void setup() {
pinMode(PIN_S, OUTPUT);
digitalWrite(PIN_S, LOW);
}
void loop() {
digitalWrite(PIN_S, HIGH);
delayMicroseconds(1);
digitalWrite(PIN_S, LOW);
delay(INTERVAL_MS);
digitalWrite(PIN_S, HIGH);
delayMicroseconds(5);
digitalWrite(PIN_S, LOW);
delay(INTERVAL_MS);
digitalWrite(PIN_S, HIGH);
delayMicroseconds(10);
digitalWrite(PIN_S, LOW);
delay(INTERVAL_MS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment