Skip to content

Instantly share code, notes, and snippets.

@DivinityArcane
Created April 28, 2016 04:18
Show Gist options
  • Save DivinityArcane/8d934f7030493343917b34de06dff7b0 to your computer and use it in GitHub Desktop.
Save DivinityArcane/8d934f7030493343917b34de06dff7b0 to your computer and use it in GitHub Desktop.
const int pulsePin = 13;
const int pulseLength = 10; // Pulse time in milliseconds
const int pulseDelay = 10; // Delay between pulses
void setup() {
pinMode(pulsePin, OUTPUT);
}
void loop() {
digitalWrite(pulsePin, 1);
delay(pulseLength);
digitalWrite(pulsePin, 0);
delay(pulseDelay);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment