Code android e arduino

When i move slider led on arduino go to on
I have 3 led when slider reached Char led set it on