Created
July 13, 2015 14:01
-
-
Save michaelsarduino/3f31ce2f1ffb876ae625 to your computer and use it in GitHub Desktop.
Dieser Sketch bringt die LED des Arduino zum blinken.
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
/* | |
* GccApplication2.cpp | |
* | |
* Created: 13.07.2015 14:24:32 | |
* Author: Michael | |
*/ | |
#ifndef F_CPU | |
#define F_CPU 16000000UL | |
#endif | |
#include <util/delay.h> | |
#include <avr/io.h> | |
int main(void) | |
{ | |
DDRB = (1 << DDB5); | |
while(1) | |
{ | |
PORTB = (1 << DDB5); | |
_delay_ms(100); | |
PORTB = (0 << DDB5); | |
_delay_ms(100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment