Arduino nano code to arduino nano every code

Hello (After such a long time, anyway)!

I am an owner of a genuine “Arduino Nano” and it functions very well controlling LEDs (ws2812b) since very first day! But now i am planning to buy 2 or 3 “Arduino Nano Every” without headers (Because basically Nano Every is cheaper than Nano and i also need to use it at different locations and in my different LED projects where i can directly solder wires to the board permanently). So, before i place my order, i simply want to know that if i upload any Arduino Nano code to Arduino Nano Every using Arduino IDE software, will it work? Or do i need to rewrite/edit the code for controlling ws2812bs?

Thank you!

The answer to your question depends on the sketch that you want to run.

I suggest that you post your sketch, using code tags when you do

@SBP1234 First question to ask yourself. What libraries are being used, and is the Every listed as being supported by those libraries?

Although it does not guarantee that it will work, you can install the megaAVR board package (you do not need the board for that) and compile your sketch. Any possible errors/warnings will need attention.

I no longer need to post any sketch here because as “sterretje” suggested, i did so and successfully compile some of my sketches and they were all compiled easily.

Thanks for quick reply!

I basically use 2 libraries…FastLED and NeoPixel.

I did as you suggested and i was able to compile ‘Arduino Nano’ sketches with ‘Arduino Nano Every’ selected as ‘Board’ and ‘ATMEGA328’ selected as ‘Registered Emulation’ under ‘Tool’ menu. ‘Port’ was grayed out under ‘Tool’ menu because i had not physically attached any Arduino Nano Every board. (I hope that is OK set up for compiling sketches.)

Anyway, i am going to buy Arduino Nano Every and let everyone know here if i had any issue uploading Nano code to Nano Every.

Thanks for helping me out. God bless all of you guys!

As soon as a board is connected (it does not matter if that is Nano, Uno, Nano Every, ...), the port will (or should) not be greyed out.

To compile, you do not need the board.

OK, i get your point. Thank you very much dear!