https://github.com/lexus2k/esp32_i2c
ESP32 i2c C++ library
https://github.com/lexus2k/esp32_i2c
esp32 i2c
Last synced: about 2 months ago
JSON representation
ESP32 i2c C++ library
- Host: GitHub
- URL: https://github.com/lexus2k/esp32_i2c
- Owner: lexus2k
- License: mit
- Created: 2021-02-19T00:59:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-19T01:04:30.000Z (over 5 years ago)
- Last Synced: 2025-04-08T08:49:46.445Z (about 1 year ago)
- Topics: esp32, i2c
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp32_i2c
## Usage
```.cpp
#include "wire_i2c.h"
WireI2C I2C( I2C_NUM_1, 400000 );
...
I2C.begin();
...
I2C.beginTransmission( 0x3C ); // device address
I2C.write(0x80); // send some data
I2C.write(0x00); // send some data
I2C.endTransmission();
...
I2C.end();
```