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
- Host: GitHub
- URL: https://github.com/einararnason/i2c
- Owner: EinarArnason
- License: mit
- Created: 2020-04-18T16:26:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T13:16:59.000Z (about 6 years ago)
- Last Synced: 2024-04-13T15:32:40.766Z (about 2 years ago)
- Topics: cpp, i2c
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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