An open API service indexing awesome lists of open source software.

https://github.com/dead-tech/i2c

Library for I2C protocol
https://github.com/dead-tech/i2c

avr c99 i2c mit-license

Last synced: 9 months ago
JSON representation

Library for I2C protocol

Awesome Lists containing this project

README

          

![Build Examples](https://github.com/dead-tech/i2c/workflows/Build%20Examples/badge.svg)

# I2C protocol

This is a library that aims to implement the [I2C protocol](https://en.wikipedia.org/wiki/I%C2%B2C) for AVR architecture.

__Disclaimer__: The library has been tested only on ATmega2560 microcontroller and ATmega328P.

## Installation

This is a stb-style header-only library. Therefore to install the library simply:
1. wget the [header file](./include/twi.h) by clicking the raw button and copying the link
2. copy it into your project folder
3. include it in your source files

For further information about stb-style header-only libries [click here](https://github.com/nothings/stb?tab=readme-ov-file#faq).

## Examples

See the [examples](./examples/) folder.