From 125d466fc178dd3bdc7ff703c7554ca8dc5d4b3f Mon Sep 17 00:00:00 2001 From: Murat Ambarkutuk Date: Tue, 13 Dec 2016 19:14:21 -0500 Subject: [PATCH 1/3] Add brief explanation about app_main() function --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c483bd75f2a..06f7f8cf37f 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,8 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard). ``` - 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 are writing your code on esp-idf examples, make sure there is just app_main() function in your main.cpp and example files. ```arduino //file: main.cpp From 8fdd0da6d285eb5dc5b0c7c8f2124f05be9047c8 Mon Sep 17 00:00:00 2001 From: Murat Ambarkutuk Date: Mon, 19 Dec 2016 23:08:31 -0500 Subject: [PATCH 2/3] Update README.md The proposed sentence is restated in a more clear way. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06f7f8cf37f..cdf586dc4ae 100644 --- a/README.md +++ b/README.md @@ -108,12 +108,12 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard). void loop(){ Serial.println("loop"); delay(1000); - } ``` + } - 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. - If you are writing your code on esp-idf examples, make sure there is just app_main() function in your main.cpp and example files. + 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 //file: main.cpp From 9c3af21019ddd68f310c02bd497f2490a443f2fe Mon Sep 17 00:00:00 2001 From: Murat Ambarkutuk Date: Mon, 19 Dec 2016 23:09:58 -0500 Subject: [PATCH 3/3] Fix typo --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cdf586dc4ae..ba154f8015f 100644 --- a/README.md +++ b/README.md @@ -108,8 +108,9 @@ Linux 32/64, Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard). void loop(){ Serial.println("loop"); delay(1000); - ``` } + ``` + - 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.