Dimming channels on display

Do you have a question on how to do something.
Ask in here.
Post Reply
Drs1210

Dimming channels on display

Post by Drs1210 »

I'm using all six channels of the dimming module for my led's. Right now my screen shows channel 0-5. I would like to be able to change the name of each channel along with the color on the display. How would I go about doing this? Here is the code that the wizard gave me.
  // Dimming Expansion
  x = 15;
  y = 13;
  for ( int a=0;a<6;a++ )
  {
    if ( a>2 ) x = 75;
    if ( a==3 ) y = 13;
    ReefAngel.LCD.DrawText( COLOR_BLACK,DefaultBGColor,x,y,"Ch :" );
    ReefAngel.LCD.DrawText( COLOR_BLACK,DefaultBGColor,x+12,y,a );
    ReefAngel.LCD.DrawText( COLOR_TEAL,DefaultBGColor,x+24,y,ReefAngel.PWM.GetChannelValue(a) );
    y += 10;
  }
  pingSerial();
Post Reply