Power to 0,66 mA on MKR 1000 with LowPower.deepSleep and WiFi.maxLowPo

Trying to reduce the power consumption of the MKR 1000 beween meassurements.

The test script uses 16,6 mA in normal operation and 1,6 mA in DeepSleep.

Turning of the USB with USBDetach() reduce to 1.18 mA

Turning off the WiFi with WiFi.maxLowPowerMode reduce to 0.66 mA

If all the ports are INPUT_PULLUP, the consumption increase to 0,79 mA, so I make them only INPUT. Also, making WiFi.end() increase the consumption to 0,73 mA.

Any more suggestions to reduce the power consumption below 66 mA?

Below the testing code:

#include “ArduinoLowPower.h”
#include <WiFi101.h>

void setup() {
// WiFi.end();
for (int i=0; i < 15; i++) { pinMode(i, INPUT); }

void loop() {
int t=0;
while(t++<20) {
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(LED_BUILTIN, LOW);

EDIT: walking back removing USBDetach() and WiFi.maxLowPowerMode still give me 0.66 mA…

exactly what I wa looking for! Thank you so much. With this configuration, a MKR1000 could be powered for about one month using a 700mAh LiPo battery, is not so bad!