Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

how to hold pin state for two hours in microcontroller

$
0
0
the problem is i want to set and reset it every 2 hours and every state hold its value for 2 hours
for example

Code (Text):
  1. if( hour=1&minute=59)/// this will set it every 2 hours but it will reset after 1 minute when the condition is false.
  2. {
  3. set
  4. }
  5. else
  6. {
  7. reset /// for two hours
  8. }
  9.  

Viewing all articles
Browse latest Browse all 4923

Trending Articles