如何控制某个I/O输出高电平,我现在想控制DIO_5向外部器件输出一个高电平到mos管的g极进而控制其关断,不知是否可行
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.
谢谢您,现在我能够使那个引脚输出3.0v的电平了,还请问能否使其输出低电平
當然可以啊,使用 GPIO_write(Board_GPIO_LED0, Board_LED_OFF)看看
我自己是将这个Board_GPIO_LED0定义成DIO_5,(#define Board_GPIO_LED0 CC1310_LAUNCHXL_DIO5_PIN_RLED),(#define CC1310_LAUNCHXL_DIO5_PIN_RLED CC1310_LAUNCHXL_GPIO_LED_RED ),这是我在Board.h文件里修改的,请问这样是对的吗,虽然成功了,但是这个是我的一个疑问,因为第二条是出现了警告,是否是我根本不需要去变动这些定义呢