I have an CP app that I modified from a Magtag Learning example that sends a JSON message to my IOT Stack server and retrieves the latest temp and humidity for one of my remote sensors and displays it on the e-Ink display and then deep sleeps for 5 minutes. It's running on a battery and will go a week without needing to recharge.
What I would like to do is map each of the 4 buttons to force the software to change which remote sensor's data to display.
Since coming out of deep is like a reset to the software, I'd have to store the button choice variable in the NVRAM.
At one time there was no support for using the buttons to bring you out of deep sleep.
Does anyone know if that now works? and any recommendations on how to do this?
using the buttons on Magtag
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: using the buttons on Magtag
You can wake on button:
https://learn.adafruit.com/magtag-dishw ... -on-button
but are limited to only two buttons. So there's no way to use all four buttons.
https://learn.adafruit.com/magtag-dishw ... -on-button
but are limited to only two buttons. So there's no way to use all four buttons.
- jfabernathy
- Posts: 110
- Joined: Thu Dec 17, 2020 10:58 pm
Re: using the buttons on Magtag
So it looks like if I use a button to toggle between which sensors to display, it will consume 7 times as much power, most likely reducing my battery life to 1 day. Too much of a penalty for this application.
Thanks for the information.
Thanks for the information.
Please be positive and constructive with your questions and comments.