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

https://github.com/einararnason/i2c

Interface for implementing code for I2C controllers
https://github.com/einararnason/i2c

cpp i2c

Last synced: over 1 year ago
JSON representation

Interface for implementing code for I2C controllers

Awesome Lists containing this project

README

          

# I2C library

Interface for implementing code for I2C controllers

## The What

This is a header only library interface that includes common non-platform specific functionality meant for I2C controllers.

## The Why

The goal is to make cross platform implementation easier for I2C functionality.

## The How

Because the library is header only, it only needs to be included.

```c++
#include "I2C.h"

class PlatformSpecificI2C : public I2C {
...
}
```

### Using cmake

```cmake
add_subdirectory(${i2cDir})
target_link_libraries(${PROJECT_NAME} I2C)
```

## The Who

Einar Arnason