diff options
Diffstat (limited to 'dice/firmware/main.c')
-rw-r--r-- | dice/firmware/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dice/firmware/main.c b/dice/firmware/main.c new file mode 100644 index 0000000..6b6f6f8 --- /dev/null +++ b/dice/firmware/main.c @@ -0,0 +1,13 @@ +#include <avr/io.h> +#include <util/delay.h> + +int main() { + DDRB |= _BV(DDB3); + + while (1) { + PORTB |= _BV(PORTB3); + _delay_ms(500); + PORTB &= ~_BV(PORTB3); + _delay_ms(500); + } +} |