Created
March 13, 2018 03:25
-
-
Save HectorTorres/800dd6e6e172a3cec1b9573f1472d06a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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