diff --git a/smallani/Makefile b/smallani/Makefile new file mode 100644 index 0000000..e362615 --- /dev/null +++ b/smallani/Makefile @@ -0,0 +1,14 @@ +TARGET = libsmallanimations.a +TOPDIR = .. + +include $(TOPDIR)/defaults.mk + +ifeq ($(SMALLANIMATION_ROWWALK),y) + SRC += rowwalk.c +endif +ifeq ($(SMALLANIMATION_COLWALK),y) + SRC += colwalk.c +endif + + +include $(TOPDIR)/rules.mk diff --git a/smallani/colwalk.c b/smallani/colwalk.c new file mode 100644 index 0000000..02363bb --- /dev/null +++ b/smallani/colwalk.c @@ -0,0 +1,23 @@ +#include +#include "../config.h" +#include "../pixel.h" +#include "../util.h" + +//dots flying from left to right +void colwalk(uint8_t times,uint8_t speed) +{ + uint8_t i, j,k,h; + + for(k=0;k +#include "../config.h" +#include "../pixel.h" +#include "../util.h" + +//dots flying from left to right +void rowwalk(uint8_t times,uint8_t speed) +{ + uint8_t i, j,k,h; + + for(k=0;k