MATLAB Answers

How do i read multiple bytes with one command on arduino?

2 ビュー (過去 30 日間)
Philip Lorenz
Philip Lorenz 2018 年 8 月 20 日
回答済み: Helper 2018 年 8 月 23 日
I have a CCS811 sensor and the bytes i need are in the same register (0x02), the datasheet says it can be up to 8bytes. there are no commands to read more than 2 bytes in the document, so is there another way than using:
I only use the Arduino Toolbox for matlab right now.

回答 (1 件)

Helper 2018 年 8 月 23 日
The 'read' function of i2cdev can be used. For more information please refer to the following documentation link

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by