STM32 ucosII program 4x2 keyboard detection
no vote
Keil development platform based on stm32 board to achieve 4x2 keyboard detection. Program entirely correct function perfectly realized.
Part of the code :
void Task1(void *pdata)
{
u8 key;
while(1)
{
key=KEY_Scan();
if(key==1)
{
digitalToggle(GPIOD,GPIO_Pin_7); //D4 light
OSTimeDlyHMSM(0,0,1,0);
}
if(key==2)
{
digitalToggle(GPIOD,GPIO_Pin_6); //D5 light
OSTimeDlyHMSM(0,0,1,0);