Config variables for flame

This commit is contained in:
Stefan `Sec` Zehl 2011-08-02 02:09:37 +02:00
parent 5dacadbb3e
commit 2d3d2af051
2 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,7 @@
struct CDESC the_config[]= {
{"version", CFGVER, CFGVER, CFGVER},
// dflt min max
{"privacy", 3, 0, 2 },
{"daytrig", 310/2, 0, 255},
{"daytrighyst", 10, 0, 50 },
@ -19,6 +20,11 @@ struct CDESC the_config[]= {
{"lcdmirror", 0, 0, 1 },
{"lcdinvert", 0, 0, 1 },
{"lcdcontrast", 3, 0, 31 },
{"flamemax", 255, 0, 255},
{"flamemin", 0, 0, 255},
{"flamespeed", 1, 1, 100},
{"flamemaxw", 255, 1, 255},
{"flameminw", 0x8f, 1, 255},
{ NULL, 0, 0, 0 },
};

View File

@ -27,6 +27,11 @@ extern char nickfont[];
#define GLOBALlcdmirror (the_config[6].value)
#define GLOBALlcdinvert (the_config[7].value)
#define GLOBALlcdcontrast (the_config[8].value)
#define GLOBALflamemax (the_config[9].value)
#define GLOBALflamemin (the_config[10].value)
#define GLOBALflamespeed (the_config[11].value)
#define GLOBALflamemaxw (the_config[12].value)
#define GLOBALflameminw (the_config[13].value)
#define GLOBALnickname (nickname)
#define GLOBALnickfont (nickfont)