Im with fun doing all kind of simple programming and I may say I do get my programs running one way or the other.
but now im stuck in something maybe not so important seeing all the harder questions here, but there must be a way. and something simple now and then makes it fun...
I made a loop running 255 times in a programmable led and added each loop a variable is added to the PWM of the led, and a delay so it appears it fades in in brightness.
it does work in the simulation here in flowcode but of coarse our eye is seeing much more difference in say a value 1-10 for the PWM or even 1-100 on the scale of 255 max.
I tried to add in a kind of logarithmic variable or even a second variable in the delay but im not succeeding...
is there a mathematic genius here who can tell me how to add small numbers in the start and larger steps in the end? I have found a log calculation in fc but don't know how to add it and try.
Thanks, Angelo.
