Can lipo be specified as power source in code?

It’s technically sleeping based on the charge led blinking furiously and it coming back up after the specified time…but maybe I need to let it go to sleep more gracefully. I saw some posts between you and BlueCheese on this: Low power sleep on Boron LTE