Skip to content

hasenradball/ESP32-C3-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spell Check Compile examples foolder

ESP32-C3-Examples

Code Examples for the Espressif ESP32-C3 SoC.

esp32-c3

List of content

About

This repository is a collection of examples for the espressif ESP32-C3 SoC.

It is structured in a way that you find a empty main.cpp file, because it is not a specific repository. Instead you find all examples in the examples folder.

From there you can copy an past the code easily to the main.cpp file

Installation

You can install/clone the repo by th following command.

git clone https://github.com/hasenradball/ESP32-C3-Examples.git

After the cloning the repository please do the following on your local repo to prevent the files to be tracked and pushed.

git update-index --assume-untracked src/main.cpp
git update-index --assume-untracked include/wifi_secrets.h

PlatformIO Configuration

The focus for this repository is to use the Arduino Core for ESP32 v3.x. Therefore it is recommended to use the Configuration for Arduino core v3.x. With v3.x there are some braking changes which means that not all examples will directly run on v2.x and need code adaption.

Arduino Core v3.x

For the usage of the Arduino Core v3.0.7 the following configuration should be used.

[env:esp32-c3-devkitm-1]
board = esp32-c3-devkitm-1
platform = espressif32

platform_packages =
    platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7
    platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-632e0c2a.zip

framework = arduino
build_flags = 
    -DARDUINO_USB_CDC_ON_BOOT=1
    -DARDUINO_USB_MODE=1

Arduino Core v2.x

For the usage of the Arduino Core v3.0.7 the following configuration should be used.

[env:esp32-c3-devkitm-1]
board = esp32-c3-devkitm-1

platform = espressif32

framework = arduino
build_flags = 
    -DARDUINO_USB_CDC_ON_BOOT=1
    -DARDUINO_USB_MODE=1

Pinmap

esp32-ce-pinmap

Compatibility

Tested with:

  • ESP32
  • ESP32-C3

Helpful Links

ESP32-c3 Datasheet

License

This library is licensed under MIT Licence.

ESP32-C3 Examples licence

back to top

About

Examples for the ESP32-C3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages