P
@jcaron said in getting desperate: pysense does not start, while with another program it works:
@PeterB I already raised the issue here: https://forum.pycom.io/topic/4105/py-setup_sleep-time/4
As is quite usual around here, the person in charge of documentation updates seems to have fallen into a black hole somewhere.
NB: count yourself lucky, this is actually something you can infer from the source code. I've had to disassemble the Pysense PIC firmware to achieve my goals at some point. Even had to write the disassembler myself...
Thank you very much. This solves possibly other unexplained problems we have seen as well. Will use the setup_sleep() now only just in front of the go_to_sleep().
I had a qucick look in to the library, Except for setting some time values, which I do not think causes the issue it calls calibrate_rtc() which in it turns calls:
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))
Perhaps the issue in one of those statements.