void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
HAL_Delay(5); //消抖
if(DI0 == 1)
ucDI |= 0x01;
else
ucDI &= (~0x01);
if(DI1 == 1)
ucDI |= (0x01<<1);
else
ucDI &= (~(0x01<<1));
if(DI2 == 1)
ucDI |= (0x01<<2);
else
ucDI &= (~(0x01<<2));
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>