Skip to content

Instantly share code, notes, and snippets.

View code0100fun's full-sized avatar
🏠
Working from home

Chase McCarthy code0100fun

🏠
Working from home
View GitHub Profile
@mws-rmain
mws-rmain / i2c_restart_main.c
Created April 2, 2018 19:06
ESP32 I2C example using ESP32 as I2C master, and a I2C device with a registered interface (requires I2C restart to read register value)
/* i2c_restart - Example
For other examples please check:
https://github.com/espressif/esp-idf/tree/master/examples
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.