wip , default color change to blue, normal occupy to green

This commit is contained in:
Yunhorn 2024-11-20 22:13:54 +08:00
parent aa2ee090bf
commit 81da401c6a
4 changed files with 8 additions and 8 deletions

View File

@ -55,8 +55,8 @@ uint8_t color_rgb[8][3] = { //STS_COLOR R G B MAPPING TABLE
extern volatile uint8_t sts_service_mask;
extern volatile uint8_t sts_work_mode;
volatile uint8_t sts_reed_hall_ext_int = 0;
volatile uint8_t sts_status_color = STS_GREEN;
volatile uint8_t sts_lamp_bar_color = STS_GREEN; //puColor
volatile uint8_t sts_status_color = STS_BLUE;
volatile uint8_t sts_lamp_bar_color = STS_BLUE; //puColor
volatile uint8_t sts_lamp_bar_flashing_color = STS_RED_DARK; //0x23; RED_BLUE;
extern volatile uint8_t sts_cloud_netcolor; //netColor
extern volatile uint8_t sts_occupancy_status;
@ -75,7 +75,7 @@ extern volatile uint8_t sts_rss_2nd_result; //2nd RSS sensor status
extern volatile uint8_t sts_tof_result;
volatile uint8_t last_lamp_bar_color=STS_GREEN;
volatile uint8_t last_lamp_bar_color=STS_BLUE;
extern volatile uint8_t sts_presence_fall_detection;
extern volatile uint8_t sts_fall_rising_detected_result;
extern volatile float sts_presence_rss_distance;

View File

@ -64,7 +64,7 @@ extern volatile uint8_t sts_reed_hall_ext_int;
extern volatile uint8_t sts_status_color;
extern volatile uint8_t sts_lamp_bar_color; //puColor
extern volatile uint8_t sts_lamp_bar_flashing_color; //0x23; RED_BLUE;
volatile uint8_t sts_cloud_netcolor = STS_GREEN; //netColor
volatile uint8_t sts_cloud_netcolor = STS_BLUE; //netColor
extern volatile uint8_t sts_occupancy_status;
extern volatile uint8_t sts_status_color, sts_lamp_bar_color;//puColor
@ -414,11 +414,11 @@ void STS_YunhornSTSEventP3_Process(void)
#if (defined(STS_O6) ||defined(STS_O7)||defined(STS_T6)||defined(O1L))
if (STS_Reed_Hall_State == STS_Status_Door_Open)
{
sts_lamp_bar_color =STS_GREEN;
sts_lamp_bar_color =STS_BLUE;
}
else
{
sts_lamp_bar_color =STS_RED;
sts_lamp_bar_color =STS_GREEN;
}
STS_Lamp_Bar_Scoller(sts_lamp_bar_color, luminance_level);
#endif

View File

@ -467,10 +467,10 @@ static void print_result(RANGING_SENSOR_Result_t *Result)
{
//fhmos_occupancy = 1;
sts_fhmos_data.occupancy_state = 1;
sts_lamp_bar_color = STS_RED;
sts_lamp_bar_color = STS_GREEN;
} else {
sts_fhmos_data.occupancy_state = 0;
sts_lamp_bar_color = STS_GREEN;
sts_lamp_bar_color = STS_BLUE;
}
if ((roi_distance < sts_high_threshold) && (roi_distance > (sts_high_threshold - sts_fhmos_cfg.sts_head_level_height_threshold_cm*10))) // TODO XXX