c programming help

Thread Starter

varunme

Joined Sep 29, 2011
60
i am interfacing RTC and led
i want to turn a motor(just turn on) when i press a switch how can i in coperate that too inside my code in C ?





Rich (BB code):
void main() {


    while (1){
        
      do {


	clock continously shows time in LCD

          
      } while (!(Button(&PORTC, 0, 1, 1)));






      if ((Button(&PORTC, 0, 1, 1)))
      {
      delay_ms(20);
            Edit_Dt();  // Here it edits time
      }
   }
}
 

spinnaker

Joined Oct 29, 2009
7,830
You are going to have to post a lot more details than this to get help. What compiler? What chip? What RTC? And the big one, where is the rest of your code???
 
Top