I am using the adafruit circuit playground bluefruit and have it perform a measurement every 15s to save battery.
In between the unit goes to deepsleep.
Code: Select all
time_alarm = alarm.time.TimeAlarm(monotonic_time=time.monotonic() + 15)
# pin_alarm = alarm.pin.PinAlarm(board.D7, False)
# Deep sleep until one of the alarm goes off. Then restart the program.
alarm.exit_and_deep_sleep_until_alarms(time_alarm)
I am only running code.py. There is no boot.py.
If someone could point me in a direction to look for the answer I would be very grateful.