From 953095583aab247764237f7724283683204199d4 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 20 Jul 2012 22:37:58 +0200 Subject: [PATCH] autonomous: Make rainbow() and grey() much slower and smoother --- arduino/autonomous/autonomous.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino/autonomous/autonomous.ino b/arduino/autonomous/autonomous.ino index 3ae5e7a..032ceaf 100644 --- a/arduino/autonomous/autonomous.ino +++ b/arduino/autonomous/autonomous.ino @@ -54,7 +54,7 @@ void rainbow(int led) { static int huephases[cpinsets]; static int huephases_i[cpinsets]; -#define HUEPHASE_LEN 128//512 +#define HUEPHASE_LEN 512 static int ini; if (!ini) { @@ -116,7 +116,7 @@ void custom(int led) /* White "breathing" effect to a certain degree of intensity. Good for identifying a point where further intensity change does not make any difference. */ void grey(int led) { - static const int steps = 200; + static const int steps = 1000; static int s = 0; static int d = 1;