資源簡介
Ardino的I2Cdev庫,可用于開發MPU6050陀螺儀,或用于其它Arduino I2C開發.

代碼片段和文件信息
//?I2Cdev?library?collection?-?Main?I2C?device?class
//?Abstracts?bit?and?byte?I2C?R/W?functions?into?a?convenient?class
//?2013-06-05?by?Jeff?Rowberg?
//
//?Changelog:
//??????2013-05-06?-?add?Francesco?Ferrara‘s?Fastwire?v0.24?implementation?with?small?modifications
//??????2013-05-05?-?fix?issue?with?writing?bit?values?to?words?(Sasquatch/Farzanegan)
//??????2012-06-09?-?fix?major?issue?with?reading?>?32?bytes?at?a?time?with?Arduino?Wire
//?????????????????-?add?compiler?warnings?when?using?outdated?or?IDE?or?limited?I2Cdev?implementation
//??????2011-11-01?-?fix?write*Bits?mask?calculation?(thanks?sasquatch?@?Arduino?forums)
//??????2011-10-03?-?added?automatic?Arduino?version?detection?for?ease?of?use
//??????2011-10-02?-?added?Gene?Knight‘s?NBWire?TwoWire?class?implementation?with?small?modifications
//??????2011-08-31?-?added?support?for?Arduino?1.0?Wire?library?(methods?are?different?from?0.x)
//??????2011-08-03?-?added?optional?timeout?parameter?to?read*?methods?to?easily?change?from?default
//??????2011-08-02?-?added?support?for?16-bit?registers
//?????????????????-?fixed?incorrect?Doxygen?comments?on?some?methods
//?????????????????-?added?timeout?value?for?read?operations?(thanks?mem?@?Arduino?forums)
//??????2011-07-30?-?changed?read/write?function?structures?to?return?success?or?byte?counts
//?????????????????-?made?all?methods?static?for?multi-device?memory?savings
//??????2011-07-28?-?initial?release
/*?============================================
I2Cdev?device?library?code?is?placed?under?the?MIT?license
Copyright?(c)?2013?Jeff?Rowberg
Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
in?the?Software?without?restriction?including?without?limitation?the?rights
to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
furnished?to?do?so?subject?to?the?following?conditions:
The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
all?copies?or?substantial?portions?of?the?Software.
THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
THE?SOFTWARE.
===============================================
*/
#include?“I2Cdev.h“
#if?I2CDEV_IMPLEMENTATION?==?I2CDEV_ARDUINO_WIRE
????#ifdef?I2CDEV_IMPLEMENTATION_WARNINGS
????????#if?ARDUINO?100
????????????#warning?Using?outdated?Arduino?IDE?with?Wire?library?is?functionally?limiting.
????????????#warning?Arduino?IDE?v1.6.5+?with?I2Cdev?Fastwire?implementation?is?recommended.
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-04-25?22:00??I2Cdev\
?????文件???????56408??2018-04-25?22:00??I2Cdev\I2Cdev.cpp
?????文件???????12215??2018-04-25?22:00??I2Cdev\I2Cdev.h
?????文件?????????859??2018-04-25?22:00??I2Cdev\keywords.txt
?????文件?????????416??2018-04-25?22:00??I2Cdev\library.json
- 上一篇:cameraCalibration.cfg
- 下一篇:DNS協議解析源碼程序
評論
共有 條評論