I am sorry that I am not a more skilled programmer.

I am sorry that I am not a more skilled programmer. My background is in 8080/Z80 machine code, APL, IDEA, BASIC, etc. from the late 70’s / early 80’s. So on to my question, which I think is more a FastLED question than a C++ question. I have a routine that halts my LED display, shows some info on the LED array then continues. What I want to do is restore the LED array to its former state after the routine runs. In other words duplicate the LED variable array. I can of course do a loop and copy each element into another array, then return the data back to the display array but that seems terribly inefficient. I am guessing that there is a fast LED function that can duplicate the data quickly as there are so many speed optimized routines within the fast LED library.

Any suggestions better than a for loop coming and going from the routine?

Thanks in advance. When I get the routine running to my satisfaction I will post a video demo as well as share the code.

Paul

What? No 6800, 6502, 8088, 68000 or Z8000? This place is going downhill. :smiley:

In the meantime, I’m not aware of a method beside the obvious one that you mentioned to restore the values of an array.

Hello Paul. Search for “memmove” on this page:

And have a look here, maybe memcpy would be useful to you?
https://github.com/FastLED/FastLED/blob/master/lib8tion.cpp

Marc, that looks like the ticket. Am fine tuning a routine and will play with this tonight after work.

Andrew, none of those chips, but does programming a H8 in offset octal via a keypad count for anything? https://images.google.com/imgres?imgurl=http://www.retrotechnology.com/herbs_stuff/h8_cards.jpg&imgrefurl=http://www.retrotechnology.com/herbs_stuff/h8.html&docid=X2vSXohCovqmjM&tbnid=JcU-sPQQGc33qM:&vet=1&w=945&h=563&source=sh/x/im

An H8 works with an octal keypad works for me. Back then, I worked on a 6800 D2 evaluation board with a hex keypad.