Last active
January 1, 2016 09:59
-
-
Save alfreedom/8128681 to your computer and use it in GitHub Desktop.
primer ejemplo de leds parpadeantes
This file contains hidden or 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
| /* Copyrigth© 2013 Licencia GPL ** | |
| ** Alfredo Orozco **/ | |
| #define F_CPU 8000000L | |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| int main(void) | |
| { | |
| DDRB = 0xFF; | |
| PORTB = 0; | |
| while(1) | |
| { | |
| PORTB = 0xFF; | |
| _delay_ms(500); | |
| PORTB = 0; | |
| _delay_ms(500); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment