【tuyaOS】BK7231N,请问TX2复用为GPIO吗?

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
xlhome
Posts: 61

按如下代码 将TX2 配置为普通的gpio , 不起作用。

TUYA_GPIO_BASE_CFG_T led_cfg = {.mode = TUYA_GPIO_PUSH_PULL,
.direct = TUYA_GPIO_OUTPUT,
.level = TUYA_GPIO_LEVEL_LOW};
TUYA_CALL_ERR_LOG(tkl_gpio_init(TUYA_GPIO_NUM_0, &led_cfg));

问如何解决?

愚者千虑必有一得
Posts: 499

Re: 【tuyaOS】BK7231N,请问TX2复用为GPIO吗?

tx2是日志输出口,不可作为GPIO使用。

Post Reply