[MQX 4.1]I2C demo for MMA8451Q

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[MQX 4.1]I2C demo for MMA8451Q

[MQX 4.1]I2C demo for MMA8451Q

I have just implemented an I2C demo for my customer, he found no demo for MMA8451Q based on MQX 4.1, so I personally wrote one for him based on the I2C EEPROM demo, as well as the driver code for MMA8451Q supporting both polled and interrupt mode. I think maybe it would be interesting for someone else, so I posted it here. The demo is for TWR-K60D100M, but I think it should be easy to port to some platform else, for example , TWR-K21F120M, all you have to do is creating a new MQX project and replace the source code with the attached one, Please also note the I2C device address might be different in tower boards. You may change the deifintion of I2C_MMA8451_BUS_ADDRESS in MMA8451.h according to the schematics.

Please kindly refer to the attached result.txt for more details.

Hope that helps,

B.R

Kan

添付
コメント

You are a wonderful person.  Thank you.

Very nice !! It works fine !!  Thanks for sharing !!

Thks for your offer!

評価なし
バージョン履歴
最終更新日:
‎03-31-2014 12:40 AM
更新者: