0. Environment Windows 8 x64 Arduino 1.0.5 Visual studio 2012 Visual micro Arduino 1. Steps Add "#include <Wire.h>" in the main .ino file, and this include need to be the first one 2. References http://forum.arduino.cc/index.php/topic,4821…
/* i2c-dev.h - i2c-bus driver, char device interface Copyright (C) 1995-97 Simon G. Vogl Copyright (C) 1998-99 Frodo Looijaard <frodol@dds.nl> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General…
参考:https://playground.arduino.cc/Code/TMP102/ Example Code for a TMP102 I2c Thermometer I've fairly extensively commented the code, hopefully it makes sense. Example code for talking to a TMP102 I2C thermometer, like those available from Sparkfun, fo…
参考:http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/arduino-quick-tip-find-your-i2c-address/ Arduino Quick Tip: Find Your I2C Address Contents [show] 1 Don't Get Hung Up When You Want to Play 2 I2C Scanner By Nick Gammon 3…