[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
更新人: