     Serial.print( "PWM frequency actual:    " ); Serial.print( ledcActualFrequency / 1000.0 ); Serial.println( "kHz." );
     Serial.print( "PWM depth:               " ); Serial.print( LEDC_NUMBER_OF_BIT ); Serial.print( "bit - "); Serial.print( (int)LEDC_PWM_DEPTH ); Serial.println( " steps." );
 
-    ledcAttachPin(LED_PIN, LEDC_CHANNEL_0);
+    ledcAttachPin( ledPin[thisChannel], thisChannel );
 
   }
   tft.println( "Setup done." );

    fadeAmount = -fadeAmount;
  }
  OLEDprintLocalTime();
  
  if ( (long)( millis() - sensorReadTime ) >= 0 )
  {
    readTempSensors();


  // set the brightness on LEDC channel 0
  ledcWrite(LEDC_CHANNEL_0, brightness);
  for ( byte thisChannel = 0; thisChannel < NUMBER_OF_CHANNELS; thisChannel++ )
  {
    ledcWrite( thisChannel, brightness );
  }

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;
