Skip to content
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

Difference between Arduino & ESP-IDF #19

Closed
mess-maker opened this issue Jan 24, 2023 · 3 comments
Closed

Difference between Arduino & ESP-IDF #19

mess-maker opened this issue Jan 24, 2023 · 3 comments
Labels
question Further information is requested

Comments

@mess-maker
Copy link

Hi,
do you plan to make template like this one with arduino framework ?

Graphics & Touch Driver : LovyanGFX
UI / Widgets : LVGL 8.x
Framework : arduino

just received my new WT32-SC01 Plus, and don't know how to get started for now as I prefer to stick to arduino framework for now

@sukesh-ak
Copy link
Owner

sukesh-ak commented Jan 25, 2023

@mess-maker Congrats.
I hope you got the debug board as well. Link is in the project readme. This will help ease some issues with flashing.

This project was a base template I created for one of my commercial requirements.
Due to Arduino license restrictions, I used ESP-IDF for it.

ESP-IDF in C++ is same as Arduino.

/* ESP-IDF code for Arduino */

// Your arduino code
void setup() {

}

void loop() {

}

// The following portion (almost same) is merged when you compile Arduino, that's all.
// This is part of one of the files in the Arduino installed folder
extern "C" void app_main(void) {

	setup();  // Your Arduino setup function
	while (1) {
		loop();  // Your Arduino loop function
	}
}

@sukesh-ak sukesh-ak changed the title template arduino framework Difference between Arduino & ESP-IDF Jan 25, 2023
@sukesh-ak sukesh-ak added the question Further information is requested label Jan 25, 2023
@sukesh-ak sukesh-ak pinned this issue Jan 25, 2023
@mess-maker
Copy link
Author

thanks I'll try to get started with that

@knopserl
Copy link

knopserl commented Jun 6, 2023

this is a great project for the WT32-SC01 Plus, many thanks for shaing this!
But I also wanted to use it in the Arduino IDE.
It it feasible and worth to spent the effort to migrate this ESP-IDF based code to an Arduino IDE acceppted code?
I have tried to insert the main.cpp code in the "voide setup() function and an empto loop function (as I have not seen a matching or required loop code) and it does of course not compile because it does not even accept the include files such as #include <spi_flash_mmap.h> ?
Any help possible or to much to change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants