Page 1 of 1

Error installing FastLED

Posted: Mon Jun 28, 2021 5:40 pm
by DutchOrange
So Iam trying to use the noise function for a buzzer using the FastLed (If you know of an easier way please say)
Iam using FastLed from : https://github.com/bbulkow/FastLED-idf
This is on:
Windows 10
ESP-IDF 4.2
code being used:

Code: Select all

#include "mdf_common.h"
#include "mwifi.h"
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <stdio.h>
#include <led_strip.h>
#include "driver/gpio.h"
#include <driver/adc.h>
#include "esp_adc_cal.h"

#include "FastLED.h"


void app_main(void)
{
    while(1){
        float noise_values = noise(5,7);
        printf("Hello world  %f \n", noise_values);
        vTaskDelay(1000 / portTICK_RATE_MS); 
    }
}
I do have esp-idf-lib but when I use noise(x,y) it wants to correct me to 'nice' ?

Here is the error in the terminal:

Code: Select all

-- Found Git: C:/Users/Brandon/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
CMake Error at D:/ESP-IDF/tools/cmake/component.cmake:221 (message):
  CMake Warning (dev) at build_properties.temp.cmake:2 (set):

    Syntax error in cmake code at



      F:/Desktop/FastLED-idf-master/build/build_properties.temp.cmake:2



    when parsing string



      C:\Users\Brandon\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe



    Invalid escape sequence \U



    Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run
    "cmake --help-policy CMP0010" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.

  Call Stack (most recent call first):

    D:/ESP-IDF/tools/cmake/scripts/component_get_requirements.cmake:1 (include)

  This warning is for project developers.  Use -Wno-dev to suppress it.



  CMake Error at
  C:/Users/Brandon/.espressif/tools/cmake/3.16.4/share/cmake-3.16/Modules/ExternalProject.cmake:1029
  (define_property):

    define_property command is not scriptable

  Call Stack (most recent call first):

    D:/ESP-IDF/tools/cmake/kconfig.cmake:1 (include)
    D:/ESP-IDF/tools/cmake/idf.cmake:41 (include)
    D:/ESP-IDF/tools/cmake/project.cmake:7 (include)
    D:/ESP-IDF/components/FastLED-idf-master/CMakeLists.txt:5 (include)
    D:/ESP-IDF/tools/cmake/scripts/component_get_requirements.cmake:60 (include)
    D:/ESP-IDF/tools/cmake/scripts/component_get_requirements.cmake:76 (__component_get_requirements)





Call Stack (most recent call first):
  D:/ESP-IDF/tools/cmake/build.cmake:405 (__component_get_requirements)
  D:/ESP-IDF/tools/cmake/project.cmake:395 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "F:/Desktop/FastLED-idf-master/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
Here is it from
F:/Desktop/FastLED-idf-master/build/build_properties.temp.cmake:2
(First line is line 2 so the FastLED is the problem but dont know how to resolve it)

Code: Select all

set(__component____idf_FastLED_COMPONENT_LIB __idf_FastLED)
set(__component____idf_FastLED___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_FastLED_COMPONENT_NAME FastLED)
set(__component____idf_FastLED_COMPONENT_DIR D:/ESP-IDF/components/FastLED)
set(__component____idf_FastLED_COMPONENT_ALIAS idf::FastLED)
set(__component____idf_FastLED___PREFIX idf)
set(__component____idf_FastLED_KCONFIG D:/ESP-IDF/components/FastLED/Kconfig)
set(__component____idf_FastLED_KCONFIG_PROJBUILD )
set(__component____idf_FastLED_SDKCONFIG_RENAME )
set(__component____idf_FastLED-idf_COMPONENT_LIB __idf_FastLED-idf)
set(__component____idf_FastLED-idf___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_FastLED-idf_COMPONENT_NAME FastLED-idf)
set(__component____idf_FastLED-idf_COMPONENT_DIR F:/Desktop/FastLED-idf-master/components/FastLED-idf)
set(__component____idf_FastLED-idf_COMPONENT_ALIAS idf::FastLED-idf)
set(__component____idf_FastLED-idf___PREFIX idf)
set(__component____idf_FastLED-idf_KCONFIG F:/Desktop/FastLED-idf-master/components/FastLED-idf/Kconfig)
set(__component____idf_FastLED-idf_KCONFIG_PROJBUILD )
set(__component____idf_FastLED-idf_SDKCONFIG_RENAME )
set(__component____idf_FastLED-idf-master_COMPONENT_LIB __idf_FastLED-idf-master)
set(__component____idf_FastLED-idf-master___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_FastLED-idf-master_COMPONENT_NAME FastLED-idf-master)
set(__component____idf_FastLED-idf-master_COMPONENT_DIR D:/ESP-IDF/components/FastLED-idf-master)
set(__component____idf_FastLED-idf-master_COMPONENT_ALIAS idf::FastLED-idf-master)
set(__component____idf_FastLED-idf-master___PREFIX idf)
set(__component____idf_FastLED-idf-master_KCONFIG )
set(__component____idf_FastLED-idf-master_KCONFIG_PROJBUILD )
set(__component____idf_FastLED-idf-master_SDKCONFIG_RENAME )
set(__component____idf_app_trace_COMPONENT_LIB __idf_app_trace)
set(__component____idf_app_trace___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_app_trace_COMPONENT_NAME app_trace)
set(__component____idf_app_trace_COMPONENT_DIR D:/ESP-IDF/components/app_trace)
set(__component____idf_app_trace_COMPONENT_ALIAS idf::app_trace)
set(__component____idf_app_trace___PREFIX idf)
set(__component____idf_app_trace_KCONFIG D:/ESP-IDF/components/app_trace/Kconfig)
set(__component____idf_app_trace_KCONFIG_PROJBUILD )
set(__component____idf_app_trace_SDKCONFIG_RENAME D:/ESP-IDF/components/app_trace/sdkconfig.rename)
set(__component____idf_app_update_COMPONENT_LIB __idf_app_update)
set(__component____idf_app_update___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_app_update_COMPONENT_NAME app_update)
set(__component____idf_app_update_COMPONENT_DIR D:/ESP-IDF/components/app_update)
set(__component____idf_app_update_COMPONENT_ALIAS idf::app_update)
set(__component____idf_app_update___PREFIX idf)
set(__component____idf_app_update_KCONFIG )
set(__component____idf_app_update_KCONFIG_PROJBUILD D:/ESP-IDF/components/app_update/Kconfig.projbuild)
set(__component____idf_app_update_SDKCONFIG_RENAME )
set(__component____idf_asio_COMPONENT_LIB __idf_asio)
set(__component____idf_asio___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_asio_COMPONENT_NAME asio)
set(__component____idf_asio_COMPONENT_DIR D:/ESP-IDF/components/asio)
set(__component____idf_asio_COMPONENT_ALIAS idf::asio)
set(__component____idf_asio___PREFIX idf)
set(__component____idf_asio_KCONFIG )
set(__component____idf_asio_KCONFIG_PROJBUILD )
set(__component____idf_asio_SDKCONFIG_RENAME )
set(__component____idf_bootloader_COMPONENT_LIB __idf_bootloader)
set(__component____idf_bootloader___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_bootloader_COMPONENT_NAME bootloader)
set(__component____idf_bootloader_COMPONENT_DIR D:/ESP-IDF/components/bootloader)
set(__component____idf_bootloader_COMPONENT_ALIAS idf::bootloader)
set(__component____idf_bootloader___PREFIX idf)
set(__component____idf_bootloader_KCONFIG )
set(__component____idf_bootloader_KCONFIG_PROJBUILD D:/ESP-IDF/components/bootloader/Kconfig.projbuild)
set(__component____idf_bootloader_SDKCONFIG_RENAME D:/ESP-IDF/components/bootloader/sdkconfig.rename)
set(__component____idf_bootloader_support_COMPONENT_LIB __idf_bootloader_support)
set(__component____idf_bootloader_support___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_bootloader_support_COMPONENT_NAME bootloader_support)
set(__component____idf_bootloader_support_COMPONENT_DIR D:/ESP-IDF/components/bootloader_support)
set(__component____idf_bootloader_support_COMPONENT_ALIAS idf::bootloader_support)
set(__component____idf_bootloader_support___PREFIX idf)
set(__component____idf_bootloader_support_KCONFIG )
set(__component____idf_bootloader_support_KCONFIG_PROJBUILD )
set(__component____idf_bootloader_support_SDKCONFIG_RENAME )
set(__component____idf_bt_COMPONENT_LIB __idf_bt)
set(__component____idf_bt___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_bt_COMPONENT_NAME bt)
set(__component____idf_bt_COMPONENT_DIR D:/ESP-IDF/components/bt)
set(__component____idf_bt_COMPONENT_ALIAS idf::bt)
set(__component____idf_bt___PREFIX idf)
set(__component____idf_bt_KCONFIG D:/ESP-IDF/components/bt/Kconfig)
set(__component____idf_bt_KCONFIG_PROJBUILD )
set(__component____idf_bt_SDKCONFIG_RENAME D:/ESP-IDF/components/bt/sdkconfig.rename)
set(__component____idf_cbor_COMPONENT_LIB __idf_cbor)
set(__component____idf_cbor___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_cbor_COMPONENT_NAME cbor)
set(__component____idf_cbor_COMPONENT_DIR D:/ESP-IDF/components/cbor)
set(__component____idf_cbor_COMPONENT_ALIAS idf::cbor)
set(__component____idf_cbor___PREFIX idf)
set(__component____idf_cbor_KCONFIG )
set(__component____idf_cbor_KCONFIG_PROJBUILD )
set(__component____idf_cbor_SDKCONFIG_RENAME )
set(__component____idf_coap_COMPONENT_LIB __idf_coap)
set(__component____idf_coap___COMPONENT_PROPERTIES COMPONENT_LIB;__COMPONENT_PROPERTIES;COMPONENT_NAME;COMPONENT_DIR;COMPONENT_ALIAS;__PREFIX;KCONFIG;KCONFIG_PROJBUILD;SDKCONFIG_RENAME)
set(__component____idf_coap_COMPONENT_NAME coap)
set(__component____idf_coap_COMPONENT_DIR D:/ESP-IDF/components/coap)
... There is more but I dont think it is needed. 
Thanks for any help possible,
And again if there is any eaiser way to make "noise" using a buzzer on the ESP32 please say.