为了提高I2C的效率,micropythhon新增加了一个函数:i2c.writevto()
函数的基本形式:i2c.writevto(addr, (buf1, buf2)).
它允许由地址+命令+数据的模式写入I2C,在命令后面紧跟大量数据,而无需重新设置缓冲区。
https://github.com/micropython/micropyt ... 97e3101f1b
micropython为I2C新增i2c.writevto()函数
-
- 随机主题
- 回复总数
- 阅读次数
- 最新文章
-
- 1回复总数
- 470 阅读次数
- 最新文章 由 shaoziyang
2022年 6月 3日 19:39
-
- 8回复总数
- 1162 阅读次数
- 最新文章 由 czfx
2022年 6月 4日 22:11
-
- 1回复总数
- 406 阅读次数
- 最新文章 由 shaoziyang
2022年 6月 4日 13:33