光敏传感器
光敏传感器需要设置为上拉输入 (GPIO_Mode_IPU)
1 | GPIO_InitTypeDef GPIO_InitStructure; |
一般0(Bit_RESET)为暗、1(Bit_SET)为亮
By XyGod; Published on 2026-04-07
光敏传感器需要设置为上拉输入 (GPIO_Mode_IPU)
1 | GPIO_InitTypeDef GPIO_InitStructure; |
一般0(Bit_RESET)为暗、1(Bit_SET)为亮