那个双斜杠的注释就是说一步步在做什么对吧,你帮我解释一下这个,大概就清晰了
1.// Scan connected device
2.// Open device
3. // Set GPIOA_0 and GPIOA_1 to output
4.// Set GPIOA_0 and GPIOA_1
5.// Reset GPIOA_0 and GPIOA_1
6.// Set GPIOA_4 and GPIOA_5 to input
7.// Read GPIOA_4 and GPIOA_5 Data
控制GPIO,1.Set GPIOA_0 and GPIOA_1 to output
调用API函数是VGI_SetOutput 描述:将PA0,PA1管脚设置为输出管脚。
6.// Set GPIOA_4 and GPIOA_5 to input
调用API函数是VGI_SetInput描述:将PA4,PA5管脚设置为输入管脚。