我自己做的板子上有10个按键。
前8个都没问题。
后两个不能识别。
这儿左边有一个小蓝旗,不知道什么意思。
这两个警告什么意思。
上面两个感叹号的地方产生上面两个警告。
请大神解惑,谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
#define HAL_KEY_SW_1 0x01 // Button S1 if available
#define HAL_KEY_SW_2 0x02 // Button S2 if available
#define HAL_KEY_SW_3 0x04 // Button S3 if available
#define HAL_KEY_SW_4 0x08 // Button S4 if available
#define HAL_KEY_SW_5 0x10 // Button S5 if available
#define HAL_KEY_SW_6 0x20 // Button S6 if available
#define HAL_KEY_SW_7 0x40 // Button S7 if available
#define HAL_KEY_SW_8 0x80 // Button S8 if available
#define HAL_KEY_SW_9 0x100 // Button S9 if available
#define HAL_KEY_SW_10 0x200 // Button S10 if available
这是我定义的10个按键。
uint16 HalKeyRead ( void )
{
uint16 keys = 0;
类似这种地方,我都把uint8换成了uint16,还是不行。