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