添加I2C程序后程序编译不通过

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

添加I2C程序后程序编译不通过

Postby guduzhe » Tue Oct 17, 2023 2:12 am

main.jpg
main.jpg (19.71 KiB) Viewed 3474 times
在初始化加上这句话就会编译不通过
ERR.jpg
ERR.jpg (209.32 KiB) Viewed 3474 times
编译报错内容
iic.jpg
iic.jpg (35.52 KiB) Viewed 3474 times
i2c_master_init函数内容

是不是使用硬件IIC需要添加什么配置?

flquchi
Posts: 4
Joined: Fri Oct 13, 2023 7:14 am

Re: 添加I2C程序后程序编译不通过

Postby flquchi » Tue Oct 17, 2023 4:19 am

没有添加相关组件?

Who is online

Users browsing this forum: No registered users and 77 guests