spectrum
This commit is contained in:
parent
941fcb8205
commit
c8e8b722be
@ -6,6 +6,7 @@
|
||||
#define LIGHT_MAX DUTY_MAX
|
||||
#define LIGHT_MIN DUTY_MIN
|
||||
#define LIGHT_OFF 0
|
||||
#define wait 250
|
||||
|
||||
#define RC 0x7FFF // return code: 0x7FFF - program should be further called by the firmware;
|
||||
#define sRC 0
|
||||
@ -25,7 +26,6 @@ enum color_pin pin;
|
||||
enum color_pin spectrum_state;
|
||||
static int lamp_idx;
|
||||
static int n_loops;
|
||||
static int wait;
|
||||
|
||||
void simple_rgb_test(TA * p_ta_array);
|
||||
void spectrum();
|
||||
@ -48,7 +48,6 @@ void PrgInit
|
||||
pin = RED;
|
||||
lamp_idx = BEG_LAMP_IDX;
|
||||
n_loops = 10;
|
||||
wait = 1000;
|
||||
}
|
||||
|
||||
int PrgTic
|
||||
@ -64,7 +63,7 @@ int PrgTic
|
||||
// {
|
||||
// simple_rgb_test(p_ta_array);
|
||||
// }
|
||||
if(cur_time-prev_time>=wait*0.1)
|
||||
if(cur_time-prev_time>=wait)
|
||||
{
|
||||
spectrum();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user