Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This does not compile on Nano Every (ATMEGA4809) #6

Open
brucemblue opened this issue Nov 1, 2021 · 0 comments
Open

This does not compile on Nano Every (ATMEGA4809) #6

brucemblue opened this issue Nov 1, 2021 · 0 comments

Comments

@brucemblue
Copy link

FastLED has been updated to support this board, however this code does not compile for it.

Arduino\libraries\MashedPixels-master\IceCrystalsMode.cpp:39:51: error: invalid types 'CRGB*[double]' for array subscript
CRGB led = &leds[round(ice[a].positioncount)];

Arduino\libraries\MashedPixels-master\AntsMode.cpp:39:52: error: invalid types 'CRGB*[double]' for array subscript
CRGB led = &leds[round(ants[a].positioncount)];

If I add a cast to an int for those lines, the code compiles but (not surprisingly) doesn't work (at all). If I change the board setting to Nano (MEGA328), it compiles fine with the original lines. I don't really understand how this is even a thing, but it's a thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant