   }
   
   uint16_t value = map(incomingValue, 0, 100, PCA9685_FULL_OFF, PCA9685_FULL_ON);
-  driver.getPin(light).setValueAndWrite(value);
+  driver.getPin(mapLightAddress(light)).setValueAndWrite(value);
 
   lightValues[light] = incomingValue;
   


  Wire.begin(I2C_SDA, I2C_SCL);
  driver.setup();

  server.on("/", []() {
    server.send_P(200, text_html, static_index_html);

  server.on("/lights", HTTP_GET, getLights);

  for (uint8_t light = 0; light < NUM_LIGHTS; light++) {
    driver.getPin(mapLightAddress(light)).setValueAndWrite(0);

    sprintf(routeHelper, "/lights/%d", light);
    
