Arduino as an ESP-IDF component

Moderator: ESP_Bob

daniel_zhang
Posts: 1
Joined: Tue Feb 27, 2024 7:41 am

Arduino as an ESP-IDF component

Postby daniel_zhang » Tue Apr 09, 2024 8:45 am

我是初学者,看到文档中arduino可以作为esp-idf的组件,那我有两个问题。
1. 使用esp-idf框架v4.4以上的版本,将Arduino 添加为组件后,那example\hello_world中调用了arduino库或者程序,那编译出来的程序是freertos还是arduino呢?例子如下:
extern "C" void app_main()
{
initArduino();

// Arduino-like setup()
Serial.begin(115200);
while(!Serial){
; // wait for serial port to connect
}

// Arduino-like loop()
while(true){
Serial.println("loop");
}

// WARNING: if program reaches end of function app_main() the MCU will restart.
}
2. 如果问题1的结果freertos,是不是意味着不需要将arduino的第三库移植到freertos下 ,就可以直接在helloword中调用arduino的硬件库,比如modbus, rs485等等。

Who is online

Users browsing this forum: No registered users and 51 guests