X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=tinyboard.git;a=blobdiff_plain;f=projects%2Frgb-led-string%2Fmain.c;fp=projects%2Frgb-led-string%2Fmain.c;h=4c82f48b8f2bed6b97f3c74e471495b60aec8d56;hp=0000000000000000000000000000000000000000;hb=616f20d134e94462b5920a2f93be54cdb9fe74e0;hpb=49420b56b31e113f4c40128c530f2e585a9f8061 diff --git a/projects/rgb-led-string/main.c b/projects/rgb-led-string/main.c new file mode 100644 index 0000000..4c82f48 --- /dev/null +++ b/projects/rgb-led-string/main.c @@ -0,0 +1,20 @@ +#include +#include +#include + +#include "rgbstring.h" + +int main(void) +{ + init_log(); + + log_set_state(3); + + DDRB |= _BV(PB2); + while (1) { + PORTB |= _BV( PB2 ); + _delay_ms(200); + PORTB &=~ _BV( PB2 ); + _delay_ms(200); + } +}