Re: [問題] STM32F4 AT command

作者: wang3166 (3166)   2018-02-21 15:04:29
GPIO_Write(GPIOF,GPIO_Pin_10); 這邊語法有問題
GPIO_Pin_10 這邊是個位址
void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal)
應該要這樣 GPIO_Write(GPIOF,1 << 10);但個人不建議用這個函式
GPIO_ResetBits();GPIO_SetBits();這二個參考看看唷

Links booklink

Contact Us: admin [ a t ] ucptt.com