Current sensing and LED-bar - logic failure

so...

I got it working. I used a different method of choosing the LED-range, found this in another of supplied example codes.

Not sure why this works and makes to loop loop as it's supposed to, but meh.

if (Amps <1.59 && Amps >1.4)
myLED.set_LED_Index(0b000001111111000);

No I need to figure out how to smooth the value to make this less jumpy.

I already searched for smoothing and came up with results, all of those use the input of an analog pin directly. I would like to use the value after the calculations are done, the "Amps"-value in my case.

Thanks for pointing me in the right direction - although I really don't understand why it's working now :smiley: