This commit is contained in:
Leon Wilzer 2022-11-23 17:43:10 +01:00
parent 941fcb8205
commit c8e8b722be

View File

@ -6,6 +6,7 @@
#define LIGHT_MAX DUTY_MAX #define LIGHT_MAX DUTY_MAX
#define LIGHT_MIN DUTY_MIN #define LIGHT_MIN DUTY_MIN
#define LIGHT_OFF 0 #define LIGHT_OFF 0
#define wait 250
#define RC 0x7FFF // return code: 0x7FFF - program should be further called by the firmware; #define RC 0x7FFF // return code: 0x7FFF - program should be further called by the firmware;
#define sRC 0 #define sRC 0
@ -25,7 +26,6 @@ enum color_pin pin;
enum color_pin spectrum_state; enum color_pin spectrum_state;
static int lamp_idx; static int lamp_idx;
static int n_loops; static int n_loops;
static int wait;
void simple_rgb_test(TA * p_ta_array); void simple_rgb_test(TA * p_ta_array);
void spectrum(); void spectrum();
@ -48,7 +48,6 @@ void PrgInit
pin = RED; pin = RED;
lamp_idx = BEG_LAMP_IDX; lamp_idx = BEG_LAMP_IDX;
n_loops = 10; n_loops = 10;
wait = 1000;
} }
int PrgTic int PrgTic
@ -64,7 +63,7 @@ int PrgTic
// { // {
// simple_rgb_test(p_ta_array); // simple_rgb_test(p_ta_array);
// } // }
if(cur_time-prev_time>=wait*0.1) if(cur_time-prev_time>=wait)
{ {
spectrum(); spectrum();
} }