Giter VIP home page Giter VIP logo

softi2cmaster's Introduction

SoftI2CMaster

Software I2C Arduino library

This is a very fast and light-weight software I2C-master library written in AVR assembler, which is based on Peter Fleury's software I2C library http://homepage.hispeed.ch/peterfleury/avr-software.html . It can use almost any pins on any AVR chip to drive the SDA and SCL lines.

It assumes a single master and does not support bus arbitration. It allows for clock stretching by slave devices and also can detect lock ups of the I2C bus, i.e., if the SCL line is held low infinitely.

Even on 1MHz systems, you can get a transfer speed of around 40 kbit/sec, so you can use it to interface with SMbus devices.

In the program text before including this library, you have to define all the necessary constants such as SDA_PIN, SDA_PORT, SCL_PIN, and SCL_PORT.

For a full description see: http://playground.arduino.cc/Main/SoftwareI2CLibrary

Note: The port ports H and above on ATmega256 are not supported. And, since it makes heavy use of assembler code, it does not run on ARM MCUs (Due, Zero, etc.).

softi2cmaster's People

Contributors

felias-fogg avatar eviveraart avatar

Watchers

James Cloos avatar jardar avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.