summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-03-19 20:41:12 +0100
committerFlorian Jung <flo@windfisch.org>2014-03-19 20:41:12 +0100
commita400be8ac4d44f3f35fc362081927bc750b1f551 (patch)
tree4d2a68370e84357a4c52797a356f97c6e5e61da3 /main.c
initial commit
Diffstat (limited to 'main.c')
-rw-r--r--main.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..dea03c1
--- /dev/null
+++ b/main.c
@@ -0,0 +1,25 @@
+#include <avr/io.h>
+#include <avr/delay.h>
+
+
+int main (void)
+{
+ DDRC=0x00;
+ PORTC=0x00;
+
+ DDRB=0xFF;
+
+
+
+ while(1)
+ {
+ PORTB|=1;
+ _delay_ms(500);
+ PORTB&= ~1;
+ _delay_ms(500);
+
+ }
+
+
+ return 0; // never reached
+}