diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-04-25 19:48:52 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-04-25 19:48:52 +0200 |
commit | 3a5c0f9bc2f9049114228e472826e31423dc5263 (patch) | |
tree | fe659f30cb5da82497e46184b837abafdb72cad4 /zumo/main.c |
pololu blink build system working
Diffstat (limited to 'zumo/main.c')
-rw-r--r-- | zumo/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zumo/main.c b/zumo/main.c new file mode 100644 index 0000000..ab66db4 --- /dev/null +++ b/zumo/main.c @@ -0,0 +1,15 @@ +#define F_CPU 16000000 + +#include <avr/io.h> +#include <util/delay.h> + +int main() { + DDRC |= (1 << DDC7); + while(1) { + PORTC |= (1 << PORTC7); + _delay_ms(500); + PORTC &= ~(1 << PORTC7); + _delay_ms(500); + } +} + |