https://github.com/einararnason/i2cteensy
I2C implementation for Teensy microcontrollers
https://github.com/einararnason/i2cteensy
cpp i2c teensy
Last synced: 10 months ago
JSON representation
I2C implementation for Teensy microcontrollers
- Host: GitHub
- URL: https://github.com/einararnason/i2cteensy
- Owner: EinarArnason
- License: mit
- Created: 2020-04-18T17:38:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T13:21:08.000Z (about 6 years ago)
- Last Synced: 2025-03-29T12:19:52.440Z (over 1 year ago)
- Topics: cpp, i2c, teensy
- Language: C++
- Size: 3.91 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
# I2Cteensy library
I2C implementation for Teensy microcontrollers
## The What
This library is a Teensy implementation for I2C controllers.
## The Why
Because this library inherits the I2C interface, it can be applied in a modular manner.
## The How
### Building
#### Dependencies
- Arduino IDE
- i2c_t3
### Usage
Typical operation:
```c++
#include "I2Cteensy.h"
I2C::Config i2cConfig(0x00, 100000);
I2Cteensy i2c();
i2c.init();
char data[1] = 0xAA;
i2c.send(i2cConfig, data, sizeof(data));
i2c.receive(i2cConfig, data, sizeof(data));
```
## The Who
Einar Arnason