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.
如果通过GPIO_SetupPinOptions将GPIO设置成输出后,还需要通过GPIO_WritePin写0或写1吗?
设置成输出后,有没有默认电平,是不是只需要通过GPIO_WritePin修改与默认电平不一致的GPIO?
这取决于您使用的芯片,您可以查看数据手册来确认以下对应引脚的默认输出电平,如28069
GPIO端口上电是默认输入高阻态,但是内部上拉是使能的,所以在系统上电后,没有程序初始化的情况下,GPIO是高电平