Is the ATMega4809 (Arduino nano every) going to be supported? I noticed that the Arduino nano IOT was already added but not the nano every.
I tried adding it myself but I couldn't understand the fastpin_avr.h file.
Support for the Arduino Nano Every would be wonderful. I'm willing to contribute, but I'm new to these kinds of things.
So far, I tried reusing the pin definitions of the ATmega328P (Nano v3) as I think the Nano Every can be used as a drop-in replacement. I might be wrong, though. In any case, I ran into a number of follow-up problems that I didn't have time to investigate yet.
I have been trying some things (example: making it look like it's a nano) but still couldn't get it to work. I'll just have to wait for someone with a solution.
I have a nano every on order and once it gets here I can start looking at getting it supported - I don鈥檛 think it is just going to be a new set of pin definitions.
The ATMega4809 is different enough from the rest of the AVR based boards that FastLED supports that it will effectively be a full port (ARCH_ARDUINO_AVRMEGA vs. ARCH_ARDUINO_AVR). The pin work is done on a branch, but it can't make use of the existing avr asm code for things like the WS2812 output and such, there are enough differences already. I'm going to be re-writing the asm code for both avr and m0 already for the RGBW support - I'll roll in updating the asm for the ATmega4809 into that process, but probably not before then.
@focalintent Thanks for the update!
Speaking of WS2812, would the WS2801 be supported as well?
Yes, although not with hardware SPI - you can check out the branch here https://github.com/FastLED/FastLED/tree/avrmega -- but I won't merge it back into master until I have a solution for WS281x style chips working.
Using the flat register names you could use the existing fastpin_avr.h class file for the port and pin definitions. I've use this to get the ATtiny series 0/1 and ATmega series 0 to work with DotStar LEDs.
// Register name equivalent (using flat names) DDRA as PORTA_DIR, PORTA as PORTA_OUT, PINA as PORTA_IN
Yes, you will still need separate asm code changes for the WS2812 type LEDs.
Any further progress on this? I'd really like to be able to use my WS2812Bs. Thanks!
Has there been any more progress on this issue or should I just revert to using a regular Nano?
Not supported yet but we鈥檙e starting to collect relevant info over on https://github.com/FastLED/FastLED/issues/716
Would love to have help if you have some expertise with the ATmega4809 pin/port mappings, too