https://github.com/wokwi/esp32c6-i2c-lp
ESP32-C6 LP I2C (Low Power) on Wokwi Example
https://github.com/wokwi/esp32c6-i2c-lp
Last synced: 5 months ago
JSON representation
ESP32-C6 LP I2C (Low Power) on Wokwi Example
- Host: GitHub
- URL: https://github.com/wokwi/esp32c6-i2c-lp
- Owner: wokwi
- Created: 2023-05-30T15:57:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T23:01:48.000Z (over 1 year ago)
- Last Synced: 2024-11-16T01:11:55.884Z (7 months ago)
- Language: C
- Size: 941 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP32-C6 LP I2C (Low Power) on Wokwi Example
ESP32-C6 Low Power example - using an I2C light sensor (BH1750) to wake up the chip from deep sleep + Wokwi simulation.
For more information about the example:
- [lp_i2c README](https://github.com/espressif/esp-idf/blob/master/examples/system/ulp/lp_core/lp_i2c/README.md)
## Running the project
1. Install [Wokwi Simulator Extension](https://marketplace.visualstudio.com/items?itemName=wokwi.wokwi-vscode) for Visual Studio Code.
2. Clone this repository and open it in Visual Studio Code.
3. Press "F1" and select "Wokwi: Start Simulator". If this is the first time you run the simulator, Wokwi will ask you to get a license
and activate it.## Rebuild the ESP-IDF Example
1. Install ESP-IDF from GitHub (master branch)
2. Go to examples/system/lp_core/lp_i2c
3. Run the following commands:
```bash
idf.py set-target esp32c6
idf.py build
```
4. Copy build/lp_i2c_example.elf to firmware/lp_i2c_example.elf in this repo.