From 66dcf910bd4744d8ced56cb9586aa937a1a2d4c5 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 7 Jul 2020 16:24:01 +0200 Subject: first commit --- cube_pc_test1/main.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 cube_pc_test1/main.c (limited to 'cube_pc_test1/main.c') diff --git a/cube_pc_test1/main.c b/cube_pc_test1/main.c new file mode 100644 index 0000000..61e4f9a --- /dev/null +++ b/cube_pc_test1/main.c @@ -0,0 +1,81 @@ +#include +#include +#include +#include +#include "cube.h" +#include "draw.h" +#include "draw_3d.h" +#include "effect.h" +#include "gameoflife.h" +#include "launch_effect.h" + +void *cube_updater (unsigned char rs232_cube[8][8]); + +int main (int argc, char **argv) +{ + + if (argc < 2) { + fprintf(stderr, "Please indicate device to use.\n"); + return 1; + } + + cube_init(argv[1]); + + pthread_t cube_thread; + int iret, i, x; + + iret = pthread_create (&cube_thread, NULL, cube_updater, rs232_cube); + + + while (1) + { + for (i = 0; i < 0; i++) { + effect_blinky2(); + } + for (i=0; i