@jcaron I think I got it
The calibrate_rtc() in library pycoproc break the console output, if I comment this call from get_sleep_remaining() No problem
Connecting on COM24...
# OK!
starting, Reset= 0
stage 1
stage 2
Wakeup reason:
4
; Aproximate sleep remaining:
calibrate_rtc
0
sec
stage 4
Wait for update .............
may be the deal is out there
def calibrate_rtc(self):
# the 1.024 factor is because the PIC LF operates at 31 KHz
# WDT has a frequency divider to generate 1 ms
# and then there is a binary prescaler, e.g., 1, 2, 4 ... 512, 1024 ms
# hence the need for the constant
self._write(bytes([CMD_CALIBRATE]), wait=False)
self.i2c.deinit()
Pin('P21', mode=Pin.IN)
pulses = pycom.pulses_get('P21', 100)
self.i2c.init(mode=I2C.MASTER, pins=(self.sda, self.scl))
idx = 0