This component is an example, to be used with the IDF component manager.
To use it with your ESP-IDF project make sure that the component manager is installed and create the manifest idf_component.yml
in the project's main
component directory:
dependencies:
example/cmp: "^3.3.3"
This component defines only one function void cmp_hello()
that prints a welcome message.
#include "cmp.h"
void app_main(void)
{
cmp_hello();
}
Copy to Clipboard
idf.py add-dependency "example/cmp^3.3.8"
To create a project from this example, run:
Copy to Clipboard
idf.py create-project-from-example "example/cmp^3.3.8:cmp_ex"
Copy to Clipboard
Copy to Clipboard