-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Added the example guideline and template #7665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
VojtechBartoska
merged 4 commits into
espressif:master
from
pedrominatel:example_guideline_and_template
Jan 17, 2023
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
01a47fd
Added the example guideline and template
pedrominatel 0514414
PR review changes with some typos and grammar fixes
pedrominatel 5638047
Merge branch 'master' into example_guideline_and_template
pedrominatel e88f547
Changes according to the PR review
pedrominatel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
16 changes: 16 additions & 0 deletions
16
libraries/ESP32/examples/Template/ExampleTemplate/ExampleTemplate.ino
This file contains hidden or 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,16 @@ | ||
/* Arduino Example Template | ||
|
||
This example code is in the Public Domain (or CC0 licensed, at your option.) | ||
|
||
Unless required by applicable law or agreed to in writing, this | ||
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. | ||
*/ | ||
|
||
void setup() { | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Arduino-ESP32 Example/Library Name ==(REQUIRED)== | ||
|
||
==*Add a brief description about this example/library here!*== | ||
==*Add a brief description of this example/library here!*== | ||
|
||
This example/library demonstrates how to create a new example README file. | ||
|
||
|
@@ -15,33 +15,33 @@ Currently, this example supports the following targets. | |
|
||
## How to Use Example/Library ==(OPTIONAL)== | ||
|
||
==*Add a brief description on how to use this example.*== | ||
==*Add a brief description of how to use this example.*== | ||
|
||
* How to install the Arduino IDE: [Install Arduino IDE](https://github.com/espressif/arduino-esp32/tree/master/docs/arduino-ide). | ||
|
||
### Hardware Connection ==(OPTIONAL)== | ||
|
||
==*Add a brief description about wiring or any other hardware specific connection.*== | ||
==*Add a brief description of wiring or any other hardware-specific connection.*== | ||
|
||
To use this example, you need to connect the LED to the `GPIOx`. | ||
|
||
SDCard GPIO connection scheme: | ||
|
||
| SDCard Pin | Function | GPIO | | ||
| SDCard Pin | Function | GPIO | | ||
| ----------- | -------- | ------ | | ||
| 1 | CS | GPIO5 | | ||
| 2 | DI/MOSI | GPIO23 | | ||
| 3 | VSS/GND | GND | | ||
| 4 | VDD/3V3 | 3V3 | | ||
| 5 | SCLK | GPIO18 | | ||
| 6 | VSS/GND | GND | | ||
| 7 | DO/MISO | GPIO19 | | ||
| 1 | CS | GPIO5 | | ||
| 2 | DI/MOSI | GPIO23 | | ||
| 3 | VSS/GND | GND | | ||
| 4 | VDD/3V3 | 3V3 | | ||
| 5 | SCLK | GPIO18 | | ||
| 6 | VSS/GND | GND | | ||
| 7 | DO/MISO | GPIO19 | | ||
|
||
To add images, please create a folder `_asset` inside the example folder to add the relevant images. | ||
|
||
### Configure the Project ==(OPTIONAL)== | ||
|
||
==*Add a brief description about this example here!*== | ||
==*Add a brief description of this example here!*== | ||
|
||
Set the LED GPIO by changing the `LED_BUILTIN` value in the function `pinMode(LED_BUILTIN, OUTPUT);`. By default, the GPIO is: `GPIOx`. | ||
|
||
|
@@ -66,7 +66,7 @@ To get more information about the Espressif boards see [Espressif Development Ki | |
|
||
#### Using Platform IO | ||
|
||
* Select the COM port: `Devices` or setting the `upload_port` option on the `platformio.ini` file. | ||
* Select the COM port: `Devices` or set the `upload_port` option on the `platformio.ini` file. | ||
|
||
## Example/Log Output ==(OPTIONAL)== | ||
|
||
|
@@ -98,21 +98,21 @@ Chip ID: 3957392 | |
* **Programming Fail:** If the programming/flash procedure fails, try reducing the serial connection speed. | ||
* **COM port not detected:** Check the USB cable and the USB to Serial driver installation. | ||
|
||
If the error persist, you can ask for help at the official [ESP32 forum](https://esp32.com) or see [Contribute](#contribute). | ||
If the error persists, you can ask for help at the official [ESP32 forum](https://esp32.com) or see [Contribute](#contribute). | ||
|
||
## Contribute ==(REQUIRED)== | ||
|
||
==*Do not change! Keep as is.*== | ||
==*Do not change! Keep it as is.*== | ||
|
||
To know how to contribute to this project, see [How to contribute.](https://github.com/espressif/arduino-esp32/blob/master/CONTRIBUTING.rst) | ||
|
||
If you have any **feedback** or **issue** to report on this example/library, please open an issue or fix it by creating a new PR. Contributions are more than welcome! | ||
|
||
Before creating a new issue, be sure to try the Troubleshooting and to check if the same issue was already created by someone else. | ||
Before creating a new issue, be sure to try Troubleshooting and check if the same issue was already created by someone else. | ||
|
||
## Resources ==(REQUIRED)== | ||
|
||
==*Do not change here! Keep as is or add only relevant documents/info for this example. Do not add any purchase link/marketing stuff*== | ||
==*Do not change here! Keep it as is or add only relevant documents/info for this example. Do not add any purchase link/marketing stuff*== | ||
|
||
* Official ESP32 Forum: [Link](https://esp32.com) | ||
* Arduino-ESP32 Official Repository: [espressif/arduino-esp32](https://github.com/espressif/arduino-esp32) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pedrominatel As this part was not edited and hidden in the PR (can't even target that line), can you please add ESP32-S3 datasheet link too. To have it in all future example READMEs. |
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.