Hey I was wondering if anyone has successfully tried the FastLed on an Atmega1284

Hey I was wondering if anyone has successfully tried the FastLed on an Atmega1284 chip? I am trying to get my code ported from an old version of FastSPI_LED2 over to the new FastLED but currently I can’t even get the example sketches working.

I am using ArduinoISP to program the chip, and if I use FastSPI_LED2 everything works great. Anyone got any tips for troubleshooting? FastLED is working for me on my UNO and Nano, so it’s not a compiling or library problem, the issue is purely with the Atmega1284, and as I said the old library works fine.

I am really hoping to try out some of the noise functions but almost all of my led strip is soldered onto the Atmega1284P’s, and encased in plastic.

It’s possible that the pin mapping defined for the Atmega1284P isn’t lining up to what you’re expecting/wiring on your soldered boards. The definitions I have are for one of those whack-job arduino expansion boards. If you look in fastpin_avr you can find the block where pin to port mappings are defined for the 1284P:

#elif defined(AVR_ATmega1284P)

_IO(A); _IO(B); _IO(C); _IO(D);

_DEFPIN_AVR(0, 1<<0, D); _DEFPIN_AVR(1, 1<<1, D); _DEFPIN_AVR(2, 1<<2, B); _DEFPIN_AVR(3, 1<<3, B);
_DEFPIN_AVR(4, 1<<0, B); _DEFPIN_AVR(5, 1<<1, B); _DEFPIN_AVR(6, 1<<2, D); _DEFPIN_AVR(7, 1<<3, D);
_DEFPIN_AVR(8, 1<<5, D); _DEFPIN_AVR(9, 1<<6, D); _DEFPIN_AVR(10, 1<<4, B); _DEFPIN_AVR(11, 1<<5, B);
_DEFPIN_AVR(12, 1<<6, B); _DEFPIN_AVR(13, 1<<7, B); _DEFPIN_AVR(14, 1<<7, A); _DEFPIN_AVR(15, 1<<6, A);
_DEFPIN_AVR(16, 1<<5, A); _DEFPIN_AVR(17, 1<<4, A); _DEFPIN_AVR(18, 1<<3, A); _DEFPIN_AVR(19, 1<<2, A);
_DEFPIN_AVR(20, 1<<1, A); _DEFPIN_AVR(21, 1<<0, A); _DEFPIN_AVR(22, 1<<0, C); _DEFPIN_AVR(23, 1<<1, C);
_DEFPIN_AVR(24, 1<<2, C); _DEFPIN_AVR(25, 1<<3, C); _DEFPIN_AVR(26, 1<<4, C); _DEFPIN_AVR(27, 1<<5, C);
_DEFPIN_AVR(28, 1<<6, C); _DEFPIN_AVR(29, 1<<7, C); _DEFPIN_AVR(30, 1<<4, D); _DEFPIN_AVR(31, 1<<7, D);

E.g. pin 0 is D0 (port D, pin 0), pin 2 is on B2 (port B, pin 2), etc…

Thanks Daniel, I found it on pin 5 (previously pin 1) That was simple. Time to play!!!