learning....unexpected results with RGB led


hello,

fairly new , trying learn don't hate :)

i have uno connected sparkfun 16x2 lcd backpack, spectra softpot, , controllable rgb led amplifier / 16ft led strip. 

i've jumbled code various sketches i've come across of own , seemed work pretty until got lcd attached.  didn't notice during fade tests each led working backwards "0" full on , "255" off.  lcd apparent when displayed red led level , @ 255 had no red.  whats best way correct outputs short of inverting values manually?  read mapping dont understand how invert way im trying to.  need pull or down led pins?  other ways possible (for learning sake).

i don't want given code, little direction learn.

quote
whats best way correct outputs short of inverting values manually?

a simple subtraction.
code: [select]
analogwrite (255 - desiredlevel);

yours presumably common anode led.


Arduino Forum > Using Arduino > LEDs and Multiplexing > learning....unexpected results with RGB led


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial