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.
在项目用了两个引脚来,设置一模一样,都为配置为输出,一个引脚上电后是高电平,一个引脚上电后是低电平,而且每次都一样。配置、电路都一模一样,见图:
电路如下图:
程序配置如下图:
为了测试,进入主循环前故意将引脚置1,并把程序烧入FLASH,如下图:
程序里,GPIO1和GPIO0都再也没有其他地方出现。
很困惑怎么会始终固定一个引脚是高电平,一个固定引脚为低电平?
如何保证上电后进入程序初始化前GPIO引脚为低电平或高电平?