   }
   
   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;
   


PCA9685 driver = PCA9685(0x00, PCA9685_MODE_N_DRIVER);
ESP8266WebServer server(80);

void getLights() {



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

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