Unable to use "led_strip.h"

Posts: 50
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)



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"

Who is online

Users browsing this forum: No registered users and 48 guests