From 67ec90ab67a8cf4529649dfd597f67b20e1cf634 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Mon, 14 Mar 2011 15:13:02 +0000 Subject: [PATCH] some fine tuning --- animations/plasma.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/animations/plasma.c b/animations/plasma.c index b76d770..8254b9a 100644 --- a/animations/plasma.c +++ b/animations/plasma.c @@ -1,4 +1,4 @@ -#include +#include // Floating point math is dog slow on AVR, but I don't care. #include #include "../config.h" #include "../pixel.h" @@ -6,8 +6,14 @@ #include "plasma.h" -#define FRAME_TICK 80 -#define FRAME_COUNT 750 +#ifndef __AVR__ + #define FRAME_TICK 80 + #define FRAME_COUNT 750 +#else + #define FRAME_TICK 1 + #define FRAME_COUNT 600 +#endif + #define PLASMA_X (1.0 / (NUM_COLS / (2.0 * M_PI)))