Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created March 13, 2018 03:25
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 HectorTorres/800dd6e6e172a3cec1b9573f1472d06a to your computer and use it in GitHub Desktop.
Save HectorTorres/800dd6e6e172a3cec1b9573f1472d06a to your computer and use it in GitHub Desktop.
/* señal PWM */
int digPin = 6; // pin digital 6
void setup()
{
pinMode(digPin, OUTPUT); // pin en modo salida
}
void loop() {
digitalWrite(digPin, HIGH); // asigna el valor HIGH al pin
delay(250); // espera un cuarto de segundo
digitalWrite(digPin, LOW); // asigna el valor LOW al pin
delay(750); // espera tres cuartos de segundo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment