Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 151f275

Browse filesBrowse files
eronikime-no-dev
authored andcommitted
Add brief explanation about app_main() function when arduino used as a esp-idf component (espressif#99)
* Add brief explanation about app_main() function * Update README.md The proposed sentence is restated in a more clear way. * Fix typo
1 parent 365a0d8 commit 151f275
Copy full SHA for 151f275

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).
106106
delay(1000);
107107
}
108108
```
109+
109110
- Else you need to implement ```app_main()``` and call ```initArduino();``` in it.
110111

111-
Keep in mind that setup() and loop() will not be called in this case
112+
Keep in mind that setup() and loop() will not be called in this case.
113+
If you plan to base your code on examples provided in [esp-idf](https://github.com/espressif/esp-idf/tree/master/examples), please make sure move the app_main() function in main.cpp from the files in the example.
112114

113115
```arduino
114116
//file: main.cpp

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.