schamp / i2cdevlib Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jrowberg/i2cdevlib
I2C device library collection for AVR/Arduino or other C++-based MCUs
This project forked from jrowberg/i2cdevlib
I2C device library collection for AVR/Arduino or other C++-based MCUs
The I2C Device Library (i2cdevlib) is a collection of uniform and well-documented classes to provide simple and intuitive interfaces to I2C devices. Each device is built to make use of the generic "i2cdev" class, which abstracts the I2C bit- and byte-level communication away from each specific device class, making it easy to keep the device class clean while providing a simple way to modify just one class to port the I2C communication code onto different platforms (Arduino, PIC, simple bit-banging, etc.). The code is written to support the Arduino/Wiring implementation, but it may be useful in other circumstances. The "I2CdevDemo.pde" file is an Arduino IDE sketch that demonstrates some basic usage of the generic and specific classes. Additionally, the I2Cdev class is built to be used statically, reducing the memory requirement if you have multiple I2C devices in your project. Only one instance of the I2Cdev class is required. Documentation for each class is created using Doxygen-style comments placed in each class definition file, based on the information available in each device's datasheet. To use the library, just place the I2Cdev .cpp/.h source files and any device library .cpp/.h source files in the same folder as your sketch (or a suitable place relative to your avr-gcc project), and include just the device library headers that you need. Arduino users will also need to include <Wire.h> in your main sketch source file. Create a single device object (e.g. "ADXL345 accel();"), place any appropriate init function calls in your setup() routine (e.g. "accel.initialize();"), and off you go! See the I2CDevDemo.pde example sketch for reference. COMPLETED DEVICE LIBRARIES: =========================== - ADS1115 - Texas Instruments ADS1115 16-bit A/D converter - ADXL345 - Analog Devices ADXL345 3-axis accelerometer - HMC5843 - Honeywell HMC5843 3-axis magnetometer - HMC5883L - Honeywell HMC5883L 3-axis magnetometer - ITG3200 - InvenSense ITG-3200 3-axis gyroscope - TCA6424A - Texas Instruments TCA6424A 24-bit I/O expander IN-PROGRESS DEVICE LIBRARIES: ============================= - AK8975 - AKM AK8975 3-axis magnetometer (missing documentation only) - MPR121 - Freescale MPR121 12-bit capacitive touch sensor (thanks to Andrew Schamp) - MPU6050 - InvenSense MPU-6050 6-axis accelerometer/gyroscope combo (compatible with MPU-6000) UPCOMING DEVICE LIBRARIES: ========================== - SSD1308 - Solomon Systech SSD1308 128x64 OLED/PLED driver (thanks to Andrew Schamp) Want something that isn't on the list? Request it, or fork the code and contribute! Better yet, send me a device on a breakout board to test the code during development. No guarantees on how fast I can get it done, but I'd love to make this the biggest consistent and well-documented I2C device library around.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.