Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created November 2, 2017 22:46
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 esmarr58/7996bb465c60fe878811eb437a0cdd0c to your computer and use it in GitHub Desktop.
Save esmarr58/7996bb465c60fe878811eb437a0cdd0c to your computer and use it in GitHub Desktop.
void setup() {
//DDRB = (DDRB & 0b11011111 ) | 0b00100000 ; //Configura a la bandera 5 como salida
DDRB = (DDRB & 0xDF) | 0x20 ; //Lo mismo que la anterior pero en hexadecimal
//pinMode(13,OUTPUT); //Lo mismo ue la anterior pero en lenguaje Arduino
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment