🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Unified compiler error with FastLED "invalid pin specified"

    Atom
    1
    1
    393
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • konacurrentsK
      konacurrents
      last edited by

      I was able to get my M5Stack code base to work on the M5AtomS3 with M5Unified (my first time using both).

      As I'm now trying to get various sensors to work, the first is the external LED.

      But I get the following compiler error:

      clockless_rmt_esp32.h:358:46: error: static assertion failed: Invalid pin specified

      fastled_esp32.h:12

      Full file path shown:

      
      In file included from /Users/scott/Documents/Arduino/libraries/FastLED/src/platforms/esp/32/fastled_esp32.h:12,
                       from /Users/scott/Documents/Arduino/libraries/FastLED/src/platforms.h:36,
                       from /Users/scott/Documents/Arduino/libraries/FastLED/src/FastLED.h:54,
                       from /Users/scott/Documents/Arduino/libraries/M5AtomS3/src/./utility/LedDisplay.h:4,
                       from /Users/scott/Documents/Arduino/libraries/M5AtomS3/src/M5AtomS3.h:6,
                       from /Users/scott/Documents/GitHub/M5Unified-ESP_IOT_Nov24/ESP32_M5Unified/ESP_IOT/Defines.h:467,
                       from /Users/scott/Documents/GitHub/M5Unified-ESP_IOT_Nov24/ESP32_M5Unified/ESP_IOT/src/SensorClass/KeyUnitSensorClass.h:3,
                       from /Users/scott/Documents/GitHub/M5Unified-ESP_IOT_Nov24/ESP32_M5Unified/ESP_IOT/src/SensorClass/KeyUnitSensorClass.cpp:2:
      /Users/scott/Documents/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h: In instantiation of 'class ClocklessController<23, 72, 72, 144, (EOrder)66, 0, false, 5>':
      /Users/scott/Documents/Arduino/libraries/FastLED/src/chipsets.h:605:7:   required from 'class SK6812Controller<23, (EOrder)66>'
      /Users/scott/Documents/Arduino/libraries/FastLED/src/FastLED.h:109:52:   required from 'class SK6812<23, (EOrder)66>'
      /Users/scott/Documents/Arduino/libraries/FastLED/src/FastLED.h:304:39:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = SK6812; unsigned char DATA_PIN = 23; EOrder RGB_ORDER = (EOrder)66]'
      /Users/scott/Documents/GitHub/M5Unified-ESP_IOT_Nov24/ESP32_M5Unified/ESP_IOT/src/SensorClass/KeyUnitSensorClass.cpp:124:54:   required from here
      /Users/scott/Documents/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h:358:46: error: static assertion failed: Invalid pin specified
           static_assert(FastPin<DATA_PIN>::validpin(), "Invalid pin specified");
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      

      Any ideas?
      Should these errors be added to the GitHub?

      thanks,
      scott

      1 Reply Last reply Reply Quote 0
      • First post
        Last post