Skip to main content
bfran.1
Associate III
December 17, 2020
Question

sleep when pressing a button on keypad

  • December 17, 2020
  • 0 replies
  • 697 views

My target is :

my device when the main run is OFF = SLEEP

Then its right this code ?

When i pressed for a time > 300 mses button (OFF/on ) my device must wakeup , my button il connected to pin wakeup

this is my code

Which timer and i must use for this case (timer one pulse ) ?

Is right write the sleeep routune before the main and when i press yhe button on/off for a time >300msec mcu wakeup0693W000006G6VfQAK.png0693W000006G6VaQAK.pngThanks

    This topic has been closed for replies.