Hi could some kindle one let me know how I could run Marks Fire2012

Hi
could some kindle one let me know how I could run Marks Fire2012
from the opposite end of of the strip please.

tried changing the following
for( int= 0; i< NUM_LEDS: i++) {
to
for(int i=50; i>NUM_LEDS:i–){ //50 as I have 50 LEDs
this didn’t work.

Try… for(int i = NUM_LEDS 1, i=<0, i-)

ooops… reedit to… for ( int i = NUM_LEDS - 1 , i >= 0 , i - - )

Damn it… for ( int i = NUM_LEDS - 1 ; i >= 0 ; i - - )

Hi JP Roy
just tried it is still working from the same end.

There are more than just one place where you need to apply the same reversed loop

Did you see this in the code?
bool gReverseDirection = false;

sorry, no I have not seen that code. any example would be much appreciated

Check my Rings of Saturn code on Github (username: modustrialmaker). you’ll have to look through a bunch of functions, but it has a couple examples of Fire coming from both ends in it (searching for “fire” should locate them pretty quickly in the code).

@Chithru_Mihiripenna - as @marmil said: look at line 11 in:

and change false to true. This should change the direction of the fire on the strip to the other end.