杰理-左右耳的LED灯闪显示

杰理-左右耳的LED灯闪显示

void ui_tws_connect_ok()
{
	static char tws_dac_lr_channel;
	tws_dac_lr_channel = bt_tws_get_local_channel();
	printf("tws_dac_lr_channel---------------- %c \n",tws_dac_lr_channel);
	if(get_bt_tws_connect_status())
    {
		if(tws_dac_lr_channel=='L')
		{
			pwm_led_mode_set(PWM_LED1_FAST_FLASH);
		}
		else if(tws_dac_lr_channel=='R')
		{
			pwm_led_mode_set(PWM_LED_ALL_OFF);
		}
	}
	else
	{
		pwm_led_mode_set(PWM_LED1_SLOW_FLASH);
	}
}

你可能感兴趣的:(c语言,单片机)