-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 68e782e
Showing
15 changed files
with
521 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
UseTab: Never | ||
IndentWidth: 4 | ||
ColumnLimit: 160 | ||
TabWidth: 4 | ||
BraceWrapping: | ||
AfterControlStatement: false | ||
AfterFunction: true | ||
AfterClass: true | ||
AfterEnum: true | ||
BeforeElse: false | ||
BreakBeforeBraces: Custom | ||
ReflowComments: false | ||
AlignAfterOpenBracket: Align # If true, horizontally aligns arguments after an open bracket. | ||
AlignConsecutiveAssignments: true # This will align the assignment operators of consecutive lines | ||
AlignConsecutiveDeclarations: true # This will align the declaration names of consecutive lines | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakTemplateDeclarations: true # If true, always break after the template<...> of a template declaration | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakConstructorInitializersBeforeComma: true # Always break constructor initializers before commas and align the commas with the colon. | ||
ExperimentalAutoDetectBinPacking: false | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MaxEmptyLinesToKeep: 4 | ||
PenaltyBreakBeforeFirstCallParameter: 200 | ||
PenaltyExcessCharacter: 10 | ||
PointerAlignment: Middle | ||
SpaceAfterCStyleCast: false | ||
SpaceBeforeAssignmentOperators: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
DerivePointerAlignment: false | ||
SortIncludes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# .github/CODE_OF_CONDUCT.md | ||
|
||
## Code of Conduct | ||
|
||
### Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
### Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
### Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
### Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
### Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email@example.com]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
### Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# .github/CONTRIBUTING.md | ||
|
||
## Contributing to the Project | ||
|
||
Thank you for your interest in contributing to this project! We welcome contributions in many forms, including bug reports, feature requests, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- .github/ISSUE_TEMPLATE/bug_report.md --> | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Pull Request Template | ||
|
||
## Description | ||
|
||
Please include a summary of the changes and the related issue number (if applicable). Describe the motivation behind the changes and how they address the issue. | ||
|
||
- **Related Issue:** # [issue_number] | ||
- **Type of Change:** | ||
- [ ] Bug fix | ||
- [ ] New feature | ||
- [ ] Documentation update | ||
- [ ] Other (Please describe): | ||
|
||
## Checklist | ||
|
||
- [ ] My code follows the style guidelines of this project. | ||
- [ ] I have performed a self-review of my own code. | ||
- [ ] I have commented my code, particularly in hard-to-understand areas. | ||
- [ ] I have made corresponding changes to the documentation. | ||
- [ ] My changes generate no new warnings. | ||
- [ ] I have added tests that prove my fix is effective or that my feature works. | ||
- [ ] New and existing unit tests pass locally with my changes. | ||
- [ ] I have run the smoke tests to ensure the basic functionality is working. | ||
- [ ] I have checked my code and corrected any misspellings. | ||
|
||
## How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Include any relevant details about your test environment, and list any dependencies that were required. | ||
|
||
- **Test Environment:** | ||
- [ ] ESP32 Development Board | ||
- [ ] Firmware Version: [version] | ||
- [ ] Platform: [e.g., Windows/Linux/macOS] | ||
- [ ] Toolchain Version: [version] | ||
|
||
- **Tests Run:** | ||
- [ ] Unit Tests | ||
- [ ] Integration Tests | ||
- [ ] System Tests | ||
- [ ] End-to-End Tests | ||
- [ ] Smoke Tests | ||
|
||
## Additional Context | ||
|
||
Please add any other context or information that reviewers might need to know about the pull request. | ||
|
||
- **Does this change require a documentation update?** | ||
- [ ] Yes | ||
- [ ] No | ||
|
||
- **Does this change affect any other modules?** | ||
- [ ] Yes | ||
- [ ] No | ||
|
||
- **Is this change backwards-compatible?** | ||
- [ ] Yes | ||
- [ ] No | ||
|
||
## Deployment Notes | ||
|
||
Provide any necessary notes regarding the deployment of this change. Mention if there are any specific steps or configurations required post-deployment. | ||
|
||
--- | ||
|
||
Thank you for your contribution to the project! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI for ESP32 Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'feature/*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Run clang-format | ||
run: | | ||
sudo apt-get install -y clang-format | ||
clang-format -i hello_world/main/*.c | ||
git diff --exit-code | ||
- name: esp-idf build | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v5.1 | ||
target: esp32s3 | ||
path: 'hello_world' | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: hello_world_build | ||
path: hello_world/build/hello_world.bin | ||
if-no-files-found: error | ||
compression-level: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
.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/ | ||
|
||
# Doc build artifacts | ||
docs/_build/ | ||
docs/doxygen_sqlite3.db | ||
|
||
# Downloaded font files | ||
docs/_static/DejaVuSans.ttf | ||
docs/_static/NotoSansSC-Regular.otf | ||
|
||
# Components Unit Test Apps files | ||
components/**/build/ | ||
components/**/build_*_*/ | ||
components/**/sdkconfig | ||
components/**/sdkconfig.old | ||
|
||
# Example project files | ||
examples/**/build/ | ||
examples/**/build_*_*/ | ||
examples/**/sdkconfig | ||
examples/**/sdkconfig.old | ||
|
||
# Unit test app files | ||
tools/unit-test-app/build | ||
tools/unit-test-app/build_*_*/ | ||
tools/unit-test-app/sdkconfig | ||
tools/unit-test-app/sdkconfig.old | ||
|
||
# test application build files | ||
tools/test_apps/**/build/ | ||
tools/test_apps/**/build_*_*/ | ||
tools/test_apps/**/sdkconfig | ||
tools/test_apps/**/sdkconfig.old | ||
|
||
TEST_LOGS/ | ||
build_summary_*.xml | ||
|
||
# gcov coverage reports | ||
*.gcda | ||
*.gcno | ||
coverage.info | ||
coverage_report/ | ||
|
||
test_multi_heap_host | ||
|
||
# VS Code Settings | ||
.vscode/ | ||
|
||
# VIM files | ||
*.swp | ||
*.swo | ||
|
||
# Sublime Text files | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# 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/ | ||
# legacy one | ||
pytest_embedded_log/ | ||
list_job*.txt | ||
size_info*.txt | ||
XUNIT_RESULT*.xml | ||
|
||
# clang config (for LSP) | ||
.clangd | ||
|
||
# Vale | ||
.vale/styles/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[![CI for ESP32 Project](https://github.com/Boernsman/esp32_hello_world/actions/workflows/ci.yml/badge.svg)](https://github.com/Boernsman/esp32_hello_world/actions/workflows/ci.yml) | ||
|
||
# ESP Hello World | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Github Workflow | ||
|
||
## Triggering Events: | ||
|
||
* The workflow triggers on pushes to the main branch and branches matching feature/*. | ||
* The workflow also triggers on pull requests targeting the main branch. | ||
|
||
## Jobs: | ||
|
||
* The workflow runs on the ubuntu-latest runner. | ||
|
||
## Steps: | ||
|
||
* Checkout code: Uses the actions/checkout action to clone the repository. | ||
* Build the project: Sets the target to ESP32 and builds the project using idf.py. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# The following 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.16) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(hello_world) |
Oops, something went wrong.