]> www.fi.muni.cz Git - tinyboard.git/blob - projects/rgb-led-string/main.c
RGB LED string - a new project
[tinyboard.git] / projects / rgb-led-string / main.c
1 #include <avr/io.h>
2 #include <util/delay.h>
3 #include <avr/interrupt.h>
4
5 #include "rgbstring.h"
6
7 int main(void)
8 {
9         init_log();
10
11         log_set_state(3);
12
13         DDRB |= _BV(PB2);
14         while (1) {
15                 PORTB |=  _BV( PB2 );
16                 _delay_ms(200);
17                 PORTB &=~ _BV( PB2 );
18                 _delay_ms(200);
19         }
20 }