Unable to use "led_strip.h"

DutchOrange
Posts: 74
Joined: Fri Dec 04, 2020 4:23 pm

Unable to use "led_strip.h"

Postby DutchOrange » Wed Jan 13, 2021 5:24 pm

So I wanted to add the led_strip.h Library to my project, I just get errors when I try build. I only added the Library and haven't used any code for it. Here is the CMake file:

Code: Select all

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/esp-idf-lib/components)
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/components)

#include($ENV{IDF_PATH}/tools/cmake/project.cmake)

include($ENV{MDF_PATH}/project.cmake)

project(Node_reciver)
Here is the error:

Code: Select all

In file included from ../main/Reciver.c:9:
E:/Desktop/MDF/esp-mdf/components/esp32/include/rom/gpio.h:1:2: warning: #warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead [-Wcpp]
 #warning rom/gpio.h is deprecated, please use esp32/rom/gpio.h instead
  ^~~~~~~
../main/Reciver.c:13:10: fatal error: led_strip.h: No such file or directory
 #include "led_strip.h"
          ^~~~~~~~~~~~~
compilation terminated.
[9/15] Building C object esp-idf/mdebug/CMakeFiles/__idf_mdebug.dir/mdebug_cmd.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Iam using ESP-IDF/MDF 4.1 On windows 10
here are all my headers :

Code: Select all

#include <string.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/ringbuf.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "driver/gpio.h"
#include "rom/gpio.h"
#include "mdf_common.h"
#include "mwifi.h"

#include "led_strip.h"

lukedukeusa
Posts: 3
Joined: Wed Feb 23, 2022 11:48 pm

Re: Unable to use "led_strip.h"

Postby lukedukeusa » Mon Feb 28, 2022 1:38 pm

Try adding:

Code: Select all

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/led_strip)

Who is online

Users browsing this forum: No registered users and 95 guests