Skip to content

Commit

Permalink
Adding CodeCell ESP32C3 new 3rd part board (#10177)
Browse files Browse the repository at this point in the history
* Add CodeCell ESP32C3 variant folder

feat(variants): Add CodeCell ESP32C3 variant folder

Added the `codecell` folder to the `arduino-esp32/variants` directory to support the CodeCell ESP32C3 board. This folder includes the necessary pin mappings and configuration files.

* Update boards.txt for CodeCell ESP32C3

chore(board): Update boards.txt for CodeCell ESP32C3

Updated the boards.txt configuration to include settings specific to the CodeCell ESP32C3 board, such as upload speed and partition schemes.

* Update variants/CodeCell/pins_arduino.h

Co-authored-by: Jan Procházka <[email protected]>

* Delete variants/CodeCell directory

* Add codecell ESP32C3 variant folder

feat(variants): Add codecell ESP32C3 variant folder

Added the CodeCell ESP32C3 variant folder to support the CodeCell ESP32C3 board.
This folder contains the necessary pin mappings and configuration files.

* Update pins_arduino.h

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Jan Procházka <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent b8c9b59 commit 49a3c10
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
58 changes: 58 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40340,3 +40340,61 @@ alfredo-nou3.menu.EraseFlash.all=Enabled
alfredo-nou3.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################
codecell.name=CodeCell
codecell.vid.0=0x303a
codecell.pid.0=0x1002
codecell.upload_port.0.vid=0x303a
codecell.upload_port.0.pid=0x1002

codecell.bootloader.tool=esptool_py
codecell.upload.tool=esptool_py
codecell.upload.maximum_size=4194304
codecell.upload.maximum_data_size=327680
codecell.upload.use_1200bps_touch=false
codecell.upload.wait_for_upload_port=false

codecell.upload.speed=921600
codecell.serial.disableDTR=false
codecell.serial.disableRTS=false

codecell.build.tarch=riscv32
codecell.build.target=esp
codecell.build.mcu=esp32c3
codecell.build.core=esp32
codecell.build.variant=codecell
codecell.build.board=ESP32C3_DEV
codecell.build.bootloader_addr=0x0
codecell.build.cdc_on_boot=1
codecell.build.f_cpu=160000000L
codecell.build.flash_size=4MB
codecell.build.flash_freq=80m
codecell.build.flash_mode=qio
codecell.build.boot=qio
codecell.build.partitions=default

codecell.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
codecell.menu.CPUFreq.160=160MHz
codecell.menu.FlashMode.qio=QIO
codecell.menu.FlashFreq.80=80MHz
codecell.menu.FlashSize.4M=4MB (32Mb)
codecell.menu.UploadSpeed.921600=921600

codecell.menu.DebugLevel.none=None
codecell.menu.DebugLevel.none.build.code_debug=0
codecell.menu.DebugLevel.error=Error
codecell.menu.DebugLevel.error.build.code_debug=1
codecell.menu.DebugLevel.warn=Warn
codecell.menu.DebugLevel.warn.build.code_debug=2
codecell.menu.DebugLevel.info=Info
codecell.menu.DebugLevel.info.build.code_debug=3
codecell.menu.DebugLevel.debug=Debug
codecell.menu.DebugLevel.debug.build.code_debug=4
codecell.menu.DebugLevel.verbose=Verbose
codecell.menu.DebugLevel.verbose.build.code_debug=5

codecell.menu.EraseFlash.none=Disabled
codecell.menu.EraseFlash.none.upload.erase_cmd=
codecell.menu.EraseFlash.all=Enabled
codecell.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################
25 changes: 25 additions & 0 deletions variants/codecell/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

static const uint8_t TX = 21;
static const uint8_t RX = 20;

static const uint8_t SDA = 8;
static const uint8_t SCL = 9;

static const uint8_t SS = 7;
static const uint8_t MOSI = 6;
static const uint8_t MISO = 5;
static const uint8_t SCK = 4;

static const uint8_t A0 = 0;
static const uint8_t A1 = 1;
static const uint8_t A2 = 2;
static const uint8_t A3 = 3;
static const uint8_t A4 = 4;
static const uint8_t A5 = 5;

#endif /* Pins_Arduino_h */

0 comments on commit 49a3c10

Please sign in to comment.