From 3bacdeb39e358f42fdf2eb01d8a04181d5709eb7 Mon Sep 17 00:00:00 2001 From: asklepios Date: Thu, 12 May 2011 20:17:10 +0000 Subject: [PATCH] real animation not just configurations ;) --- smallani/Makefile | 14 ++++++++++++++ smallani/colwalk.c | 23 +++++++++++++++++++++++ smallani/colwalk.h | 6 ++++++ smallani/config.in | 5 +++++ smallani/rowwalk.c | 23 +++++++++++++++++++++++ smallani/rowwalk.h | 6 ++++++ 6 files changed, 77 insertions(+) create mode 100644 smallani/Makefile create mode 100644 smallani/colwalk.c create mode 100644 smallani/colwalk.h create mode 100644 smallani/config.in create mode 100644 smallani/rowwalk.c create mode 100644 smallani/rowwalk.h 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