Browse Source

improved flying dots anim

feature/2015
Hans-Gert Dahmen 15 years ago
parent
commit
61c22b24f1
  1. 8
      animations/Makefile
  2. 4
      config.in
  3. 20
      display_loop.c

8
animations/Makefile

@ -13,6 +13,14 @@ ifeq ($(ANIMATION_MATRIX),y)
SRC += matrix.c
endif
ifeq ($(ANIMATION_STONEFLY),y)
SRC += stonefly.c
endif
ifeq ($(ANIMATION_FLYINGDOTS),y)
SRC += flyingdots.c
endif
ifeq ($(ANIMATION_GAMEOFLIFE),y)
SRC += gameoflife.c
endif

4
config.in

@ -64,7 +64,9 @@ comment "Animations"
bool "Schachbrett" ANIMATION_SCHACHBRETT
dep_bool "Feuer" ANIMATION_FEUER $RANDOM_SUPPORT
dep_bool "Matrix" ANIMATION_MATRIX $RANDOM_SUPPORT
dep_bool "Random bright" ANIMATION_RANDOM_BRIGHT $RANDOM_SUPPORT
dep_bool "Random Bright" ANIMATION_RANDOM_BRIGHT $RANDOM_SUPPORT
dep_bool "Stonefly" ANIMATION_STONEFLY $RANDOM_SUPPORT
dep_bool "Flying Dots" ANIMATION_FLYINGDOTS $RANDOM_SUPPORT
dep_bool "Game of Life" ANIMATION_GAMEOFLIFE $RANDOM_SUPPORT
bool "M Herweg" ANIMATION_MHERWEG

20
display_loop.c

@ -7,6 +7,8 @@
#include "animations/programm.h"
#include "animations/matrix.h"
#include "animations/gameoflife.h"
#include "animations/stonefly.h"
#include "animations/flyingdots.h"
#include "borg_hw/borg_hw.h"
#include "can/borg_can.h"
#include "random/prng.h"
@ -90,15 +92,27 @@ void display_loop(){
break;
#endif
#ifdef ANIMATION_GAMEOFLIFE
#ifdef ANIMATION_STONEFLY
case 9:
stonefly();
break;
#endif
#ifdef ANIMATION_GAMEOFLIFE
case 10:
gameoflife();
break;
#endif
#ifdef ANIMATION_FLYINGDOTS
case 12:
flyingdots();
break;
#endif
#ifdef ANIMATION_MHERWEG
case 10:
flydots();
case 11:
lines1();
dots1();
movinglines();

Loading…
Cancel
Save