Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hayschan authored May 30, 2024
0 parents commit 2a198a1
Show file tree
Hide file tree
Showing 16 changed files with 294 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.md,*.rst}]
trim_trailing_whitespace = false

[{Makefile,*.mk,*.bat}]
indent_style = tab
indent_size = 2

[*.pem]
insert_final_newline = false

[*.py]
max_line_length = 119

[{*.cmake,CMakeLists.txt}]
indent_style = space
indent_size = 4
max_line_length = 120

[{*.sh,*.yml,*.yaml}]
indent_size = 2

[*.ini]
indent_size = 2
41 changes: 41 additions & 0 deletions .github/workflows/espidf-compile-v5.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Compile ESP-IDF Sketches for v5.1

on:
pull_request:
paths:
- ".github/workflows/espidf-compile-*.yml"
- "main/**"
- "components/**"
- "CMakeLists.txt"
- "Kconfig"
- "partitions.csv"
- "sdkconfig.defaults"

push:
paths:
- ".github/workflows/espidf-compile-*.yml"
- "main/**"
- "components/**"
- "CMakeLists.txt"
- "Kconfig"
- "partitions.csv"
- "sdkconfig.defaults"
workflow_dispatch:
repository_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build default data polling example on v5.1
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.1
target: esp32s3
path: '.'
162 changes: 162 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

.config
*.o
*.pyc

# gtags
GTAGS
GRTAGS
GPATH

# emacs
.dir-locals.el

# emacs temp file suffixes
*~
.#*
\#*#

# eclipse setting
.settings

# MacOS directory files
.DS_Store

# cache dir
.cache/

# Components Unit Test Apps files
components/**/build/
components/**/build_*_*/
components/**/sdkconfig
components/**/sdkconfig.old

# Example project files
examples/**/build/
examples/**/build_esp*_*/
examples/**/sdkconfig
examples/**/sdkconfig.old

# Doc build artifacts
docs/_build/
docs/doxygen_sqlite3.db

# Downloaded font files
docs/_static/DejaVuSans.ttf
docs/_static/NotoSansSC-Regular.otf

# sdkconfig
sdkconfig.old
sdkconfig

# Unit test app files
tools/unit-test-app/sdkconfig
tools/unit-test-app/sdkconfig.old
tools/unit-test-app/build
tools/unit-test-app/build_*_*/
tools/unit-test-app/output
tools/unit-test-app/test_configs

# Unit Test CMake compile log folder
log_ut_cmake

# test application build files
tools/test_apps/**/build/
tools/test_apps/**/build_*_*/
tools/test_apps/**/sdkconfig
tools/test_apps/**/sdkconfig.old

TEST_LOGS

# gcov coverage reports
*.gcda
*.gcno
coverage.info
coverage_report/

test_multi_heap_host

# VS Code Settings
.vscode/

# VIM files
*.swp
*.swo

# Clion IDE CMake build & config
.idea/
cmake-build-*/

# Results for the checking of the Python coding style and static analysis
.mypy_cache
flake8_output.txt

# ESP-IDF default build directory name
build

# lock files for examples and components
dependencies.lock

# managed_components for examples
managed_components

# pytest log
pytest_embedded_log/

# Squareline Studio
SquarelineStudio/SquarelineStudio_Project/backup/
SquarelineStudio/SquarelineStudio_Project/autosave/
SquarelineStudio/SquarelineStudio_Project/cache/
SquarelineStudio/SquarelineStudio_Project/export/
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_options("-Wno-format")
get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME)
string(REPLACE " " "_" ProjectId ${ProjectId})
project(${ProjectId})
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ESP-PROJECT-TEMPLATE
用这个作为 ESP 相关的模板
## c语言开发
idf_component_register(SRCS "main.c"
INCLUDE_DIRS ".")

## c++语言开发
idf_component_register(SRCS "main.cpp"
INCLUDE_DIRS ".")
3 changes: 3 additions & 0 deletions Squareline/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ESP-PROJECT-TEMPLATE
用这个作为 ESP 相关的模板

2 changes: 2 additions & 0 deletions components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ESP-PROJECT-TEMPLATE
用这个作为 ESP 相关的模板
Empty file added docs/README.md
Empty file.
7 changes: 7 additions & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#c语言开发
idf_component_register(SRCS "main.c"
INCLUDE_DIRS ".")

#c++语言开发
#idf_component_register(SRCS "main.cpp"
# INCLUDE_DIRS ".")
2 changes: 2 additions & 0 deletions main/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ESP-PROJECT-TEMPLATE
用这个作为 ESP 相关的模板
13 changes: 13 additions & 0 deletions main/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <stdio.h>
/*c语言开发*/
void app_main(void)
{
printf("the template successfully created\n");
}


/*c++语言开发*/
// extern "C" void app_main(void)
// {

// }
4 changes: 4 additions & 0 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file was generated using idf.py save-defconfig. It can be edited manually.
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
#
CONFIG_IDF_TARGET="esp32s3"
3 changes: 3 additions & 0 deletions translations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ESP-PROJECT-TEMPLATE
用这个作为 ESP 相关的模板

Empty file added translations/en.yml
Empty file.
Empty file added translations/zh-cn.yml
Empty file.
Empty file added translations/zh-hk.yml
Empty file.

0 comments on commit 2a198a1

Please sign in to comment.