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 -