初步完成文本阅读器
This commit is contained in:
parent
d13adb1ace
commit
77aa3c0ae6
@ -47,6 +47,8 @@ uint8_t KEY_GetKey(void)
|
|||||||
{
|
{
|
||||||
return NO_KEY;
|
return NO_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return NO_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,6 +63,6 @@ uint8_t KEY_GetKeyWait(void)
|
|||||||
{
|
{
|
||||||
key = KEY_GetKey();
|
key = KEY_GetKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,8 @@
|
|||||||
#define NO_KEY 0
|
#define NO_KEY 0
|
||||||
#define KEY1 1
|
#define KEY1 1
|
||||||
#define KEY2 2
|
#define KEY2 2
|
||||||
|
#define KEY3 3
|
||||||
|
#define KEY4 4
|
||||||
|
|
||||||
#define KEY1_Val HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_3)
|
#define KEY1_Val HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_3)
|
||||||
#define KEY2_Val HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_5)
|
#define KEY2_Val HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_5)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user