mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-09 21:34:00 +02:00
autonomous: Make rainbow() and grey() much slower and smoother
This commit is contained in:
parent
5a9884c360
commit
953095583a
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ void rainbow(int led)
|
||||||
{
|
{
|
||||||
static int huephases[cpinsets];
|
static int huephases[cpinsets];
|
||||||
static int huephases_i[cpinsets];
|
static int huephases_i[cpinsets];
|
||||||
#define HUEPHASE_LEN 128//512
|
#define HUEPHASE_LEN 512
|
||||||
|
|
||||||
static int ini;
|
static int ini;
|
||||||
if (!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. */
|
/* 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)
|
void grey(int led)
|
||||||
{
|
{
|
||||||
static const int steps = 200;
|
static const int steps = 1000;
|
||||||
static int s = 0;
|
static int s = 0;
|
||||||
static int d = 1;
|
static int d = 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue