Events during System-Time-Sleep
-
Hi,
I'm using a M5Paper to take environmental readings, once I've updated the screen with all the readings, I using the System-Time-Sleep to wait 1 minute before I take more readings. It seems to pause the whole system so if I press any buttons during this 1 minute it doesn't seem to register this.
Is there a way or a better command to only make the sensors take a reading every x minutes but also register any button presses during this wait period (it doesn't have to do anything but just register so once the x minute is up I can then do something based on the button press).
Kind regards,
Matthew
-
Hello @mattjcuk
you could use a timer instead which doesn't block other events like buttons.
Please see Project Zone example: M5Paper_Timer_And_Button_UIFlow2.0.8
Thanks
Felix -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login