avr/animation/main.c

37 lines
784 B
C
Raw Normal View History

#include <stdlib.h>
2022-07-18 03:01:27 +00:00
#include <stdio.h>
#include <animation.h>
2022-07-18 03:01:27 +00:00
int main (void) {
{
time_line_t line = time_line_new(0, 0, 15, 10);
time_line_print(&line);
for (int i = 0; i < 15; i++) {
time_line_next(&line);
time_line_print(&line);
}
}
2022-07-18 03:01:27 +00:00
printf("\n");
2022-07-18 03:01:27 +00:00
{
time_line_t line = time_line_new(0, 0, 15, 25);
time_line_print(&line);
for (int i = 0; i < 15; i++) {
time_line_next(&line);
time_line_print(&line);
}
}
printf("\n");
2022-07-18 03:01:27 +00:00
{
time_line_t line = time_line_new(0, 0, 10, 255);
time_line_print(&line);
for (int i = 0; i < 10; i++) {
time_line_next(&line);
time_line_print(&line);
}
}
}