Getting lower power consumption on Seeed XIAO nRF52840

Hi
Now everything works fine. Just one laste thing. I am using connection led but it will not shut off.
If the board is advertising and you shut the board in deepsleep the light stays on.
digitalWrite(XX, HIGH); dos not work.
Bluefruit.Advertising.stop(); no effect on the light.

void enter_deep_sleep() {
  // Print a message before entering deep sleep
  Serial.println("Entering deep sleep...");
  pinMode(BUTTON_PIN, INPUT_PULLDOWN_SENSE); // Set the pin to pull-down and sense high level
  nrf_gpio_cfg_sense_input(BUTTON_PIN, NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH);

  delay(500);
  Serial.println("Qspif");
  
  Bluefruit.Advertising.stop();  // Stop advertising
  delay(100);

  Serial.end();
  QSPIF_sleep();
  // Enter deep sleep mode
   //NRF_POWER->SYSTEMOFF=1;
   sd_power_system_off(); 
}

It is not the lowest consumption if the led stays on.

edit:

Bluefruit.autoConnLed(true);
Bluefruit.autoConnLed(false);

found it :laughing: