Skip to content

Atmega32 support(mighty core) #598

Closed

Description

@Ma5t3rful

hi guy, i have an issue with this library. when i coding with this lib it doesn't compile.
error: multiple library were found.

and when i change the model to arduoino-NG (atmega 8) it works very well.
please help

Activity

  1. focalintent commented on Apr 17, 2018

    @focalintent
    Contributor

    What are you building it with, what version of the library are you using, what does the entire build output look like?

    error: multiple library were found makes it sounds like you have multiple versions of FastLED installed.

    I'm not aware of anyone using the mighty core - so it's likely that the library is missing pin definitions for your board (see platforms/avr/fastpin_avr.h) - but your error message isn't anything that comes out of FastLED itself, so I think you have some other build problems going on as well.

  2. obdevel commented on Jul 1, 2018

    @obdevel

    I'd welcome support for MightyCore too. Currently it results in a compilation error:

    In file included from /Users/xxx/Documents/Arduino/libraries/FastLED/FastLED.h:51:0,
                     from /Users/xxx/Documents/Arduino/xyz_test_v1/xyz_test_v1.ino:8:
    /Users/xxx/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of 'class FastPin<13u>':
    /Users/xxx/Documents/Arduino/libraries/FastLED/platforms/avr/clockless_trinket.h:96:49:   required from 'class ClocklessController<13u, 4, 10, 6, (EOrder)66u, 0, false, 10>'
    /Users/xxx/Documents/Arduino/libraries/FastLED/chipsets.h:382:7:   required from 'class WS2812Controller800Khz<13u, (EOrder)66u>'
    /Users/xxx/Documents/Arduino/libraries/FastLED/FastLED.h:94:34:   required from 'class NEOPIXEL<13u>'
    /Users/xxx/Documents/Arduino/libraries/FastLED/FastLED.h:310:28:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = NEOPIXEL; unsigned char DATA_PIN = 13u]'
    /Users/xxx/Documents/Arduino/xyz_test_v1/xyz_test_v1.ino:90:53:   required from here
    /Users/xxx/Documents/Arduino/libraries/FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified
      static_assert(validpin(), "Invalid pin specified");
    ...
    ...
    exit status 1
    Error compiling for board ATmega644.
    
    /Users/xxx/Documents/Arduino/libraries/FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.007
    

    Arduino 1.8.5, macOS 10.13.5, 644P, MightyCore 2.0.0, standard pinout.
    Attempting to use pin PD5, which maps to Arduino pin 13. This pin has no special function on this board, other than being PWM-capable.

    Happy to help out with the port if there is documentation available.

    Thanks

  3. focalintent commented on Jul 5, 2018

    @focalintent
    Contributor

    Again, pin definitions need to be added in platforms/avr/fastpin_avr.h for this board.

  4. obdevel commented on Jul 9, 2018

    @obdevel

    Ok, the 644P seems similar enough to the 1284P which is already supported. From my limited testing, I can compile and successfully run trivial tests by adding the 644 to the 1284 line in platforms/avr/fastpin_avr.h, e.g.

    #elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)

    Maybe this will provide support for all the MightyCore supported MCUs. @Master811129 - do you want to try this ?

    Are there any acceptance tests that can be run ? I'm using an own-design board so I don't have access to every pin to test.

  5. tmbomber383 commented on Sep 8, 2018

    @tmbomber383

    I use 644P processors as well. I'm in work on Saturday and tried using this library for the first time and ran into this exact, same, issue...
    and came up with the exact, same, solution.
    In fastpin_avr.h I modified line 183 from:
    #elif defined(AVR_ATmega1284P)
    to:
    #elif defined(AVR_ATmega1284P) || defined(AVR_ATmega644P)
    and I'm up and running.
    So, confirmation on this being a solution and a second request that it be folded in to the next release.

  6. focalintent commented on Sep 8, 2018

    @focalintent
    Contributor

    Just pushed FastLED 3.2.1 which adds this

  7. added a commit that references this issue on Oct 14, 2018
    6d0cc96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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