Reading data from the Wii Nunchuck input into Arduino using scanI2CBus

2 ビュー (過去 30 日間)
John
John 2017 年 9 月 11 日
Dear all,
I'm trying to read in the data from the Wii Nunchuck input into the Uno Arduino using the read/write functions for Arduino IC2 interface. See description of data package below:
"In order to read data from the Nunchuk, it's necessary to send the address to read from, since the controller of the Nunchuk increments the address with every read. The data we're actually interested in lies at address 0x00 and is 6 bytes long. At address 0x20 and 0x30 (seems to be an exact copy of the bytes at 0x20)."
I have been able to connect and read from the address of the device, but am unable to read the data package. Any suggestions, particularly with regards to bitshifting to read the data?

回答 (0 件)

カテゴリ

Help Center および File ExchangeFood Sciences についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by