混合式調(diào)度器C51源代碼及相關注釋
{
LED_State_G_B = 1;
LED_pin_B = 1;
}
}本文引用地址:http://www.ex-cimer.com/article/149077.htm
void LED_Flash_Update_C(void)
{
if(LED_State_G_C == 1)
{
LED_State_G_C = 0;
LED_pin_C = 0;
}
else
{
LED_State_G_C = 1;
LED_pin_C = 1;
}
}
void LED_Flash_Update_D(void)
{
if(LED_State_G_D == 1)
{
LED_State_G_D = 0;
LED_pin_D = 0;
}
else
{
LED_State_G_D = 1;
LED_pin_D = 1;
}
}
void LED_Flash_Update_E(void)
{
if(LED_State_G_E == 1)
{
LED_State_G_E = 0;
LED_pin_E = 0;
}
else
{
LED_State_G_E = 1;
LED_pin_E = 1;
}
}
void LED_Flash_Update_F(void)
{
if(LED_State_G_F == 1)
{
LED_State_G_F = 0;
LED_pin_F = 0;
}
else
{
LED_State_G_F = 1;
LED_pin_F = 1;
}
}
void LED_Flash_Update_G(void)
{
if(LED_State_G_G == 1)
{
LED_State_G_G = 0;
LED_pin_G = 0;
}
else
{
LED_State_G_G = 1;
LED_pin_G = 1;
}
}
void LED_Flash_Update_H(void)
{
if(LED_State_G_H == 1)
{
LED_State_G_H = 0;
LED_pin_H = 0;
}
else
{
LED_State_G_H = 1;
LED_pin_H = 1;
}
}
void LED_Flash_Init(void)
{
LED_State_G_A= 0;//初始化LED狀態(tài)
LED_State_G_B= 0;//初始化LED狀態(tài)
LED_State_G_C= 0;//初始化LED狀態(tài)
}
評論