This commit is contained in:
Yunhorn 2024-04-13 22:21:04 +08:00
parent a7b8a73157
commit 1b23ca28f0
3 changed files with 9 additions and 6 deletions

View File

@ -101,10 +101,13 @@ int main(void)
/* Initialize all configured peripherals */
MX_LoRaWAN_Init();
/* USER CODE BEGIN 2 */
STS_Lamp_Bar_Self_Test_Simple();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */

View File

@ -102,7 +102,7 @@ void STS_YunhornSTSEventP1_Process(void)
void STS_YunhornSTSEventP2_Process(void)
{
//STS_Lamp_Bar_Refresh(); //TODO XXX eliminate refresh every second.... try
STS_Lamp_Bar_Refresh(); //TODO XXX eliminate refresh every second.... try
if ((sts_work_mode >= STS_RSS_MODE) && (sts_work_mode <= STS_TOF_RSS_MODE))
{
STS_RSS_Smart_Presence_Detection();
@ -563,7 +563,7 @@ void STS_Lamp_Bar_Self_Test_Simple(void)
do {
STS_Lamp_Bar_Set_STS_RGB_Color(color, luminance_level);
HAL_Delay(50);
luminance_level += 20;
luminance_level += 10;
} while (luminance_level < 99);
//STS_Lamp_Bar_Set_Dark();
}

View File

@ -600,8 +600,8 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
switch (GPIO_Pin)
{
case BUT1_Pin:
#if defined(USE_STM32WL55)
//sts_reed_hall_ext_int = 1;
sts_reed_hall_ext_int = 1;
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), CFG_SEQ_Prio_0);
//sts_reed_hall_ext_int = 0;
/* Note: when "EventType == TX_ON_TIMER" this GPIO is not initialized */
@ -609,7 +609,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
}
#endif
break;
case BUT2_Pin: