Invert variable SOLVED
Posted: Thu Jan 06, 2011 10:41 am
Hello,
I have a PWM dimmer, with potentiometer and a push botton input.
The PWM fet driver is changed (inverted), so i want to change the software.
Is there a (easy) way to invert the 0-255 data, what i send to the PWM variable.
So 001 will be 254, and 200 will be 55, exc.
I did not find any info about this, thanks Danny
I have a PWM dimmer, with potentiometer and a push botton input.
The PWM fet driver is changed (inverted), so i want to change the software.
Is there a (easy) way to invert the 0-255 data, what i send to the PWM variable.
So 001 will be 254, and 200 will be 55, exc.
I did not find any info about this, thanks Danny