提交 151f275e 编写于 作者: M Murat Ambarkutuk 提交者: Me No Dev

Add brief explanation about app_main() function when arduino used as a esp-idf component (#99)

* Add brief explanation about app_main() function

* Update README.md

The proposed sentence is restated in a more clear way.

* Fix typo
上级 365a0d85
...@@ -106,9 +106,11 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard). ...@@ -106,9 +106,11 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).
delay(1000); delay(1000);
} }
``` ```
- Else you need to implement ```app_main()``` and call ```initArduino();``` in it. - Else you need to implement ```app_main()``` and call ```initArduino();``` in it.
Keep in mind that setup() and loop() will not be called in this case Keep in mind that setup() and loop() will not be called in this case.
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.
```arduino ```arduino
//file: main.cpp //file: main.cpp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册