Skip to content

FastLED Error Compiling - static_assert(validpin(), "Invalid pin specified"); #308

@dawie180

Description

@dawie180

Hi,

I've got a strip of W8212 LED's hooked up to a custom PCB running a Atmega644PA at 16Mhz, I'm using FastLED 3.1 and IDE 1.6.7. I get a compiling error whenever i include the FastLED library. I have the the DATA PIN connected to the PB7 pin on the 644 which translates to pin 15 in IDE. I've used this library before on a custom PCB running a Atmega328 at 16Mhz without any issue, i do see that with the Atmega328 PB7 would just be pin 7 in IDE and with the 644 it translates a bit differently (PB7 = pin 15)... So i don't know if that has something to do with it.

In file included from C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:40:0,

                 from C:\Users\feste\AppData\Local\Temp\arduino_ee0154f342bd35375a3767f897a1a60c\Blink.ino:1:

C:\Program Files (x86)\Arduino\libraries\FastLED-master/fastpin.h: In instantiation of 'class FastPin<4u>':

C:\Program Files (x86)\Arduino\libraries\FastLED-master/platforms/avr/clockless_trinket.h:96:49:   required from 'class ClocklessController<4u, 4, 10, 6, (EOrder)10u, 0, false, 10>'

C:\Program Files (x86)\Arduino\libraries\FastLED-master/chipsets.h:322:7:   required from 'class WS2812Controller800Khz<4u, (EOrder)10u>'

C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:92:52:   required from 'class WS2812B<4u, (EOrder)10u>'

C:\Program Files (x86)\Arduino\libraries\FastLED-master/FastLED.h:263:39:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812B; unsigned char DATA_PIN = 4u; EOrder RGB_ORDER = (EOrder)10u]'

C:\Users\feste\AppData\Local\Temp\arduino_ee0154f342bd35375a3767f897a1a60c\Blink.ino:22:62:   required from here

C:\Program Files (x86)\Arduino\libraries\FastLED-master/fastpin.h:206:2: error: static assertion failed: Invalid pin specified

  static_assert(validpin(), "Invalid pin specified");

  ^

exit status 1
Error compiling.

TIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions