Skip to content

Commit 151f275

Browse 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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
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)