* @brief Reads the specified GPIO input data pin.
* @param GPIOx : Select the GPIO peripheral number (x = A to I).
* @param GPIO_Pin : Specifies the pin number.
* This parameter can be one of the following values:
* @arg GPIO_Pin_0: Pin 0
* @arg GPIO_Pin_1: Pin 1
* @arg GPIO_Pin_2: Pin 2
* @arg GPIO_Pin_3: Pin 3
* @arg GPIO_Pin_4: Pin 4
* @arg GPIO_Pin_5: Pin 5
* @arg GPIO_Pin_6: Pin 6
*

这篇博客介绍了如何在STM8L15x系列单片机中判断指定输入引脚的电平状态,提供了一段用于读取I/O引脚电平的代码示例。
最低0.47元/天 解锁文章
2764

被折叠的 条评论
为什么被折叠?



