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 ?
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
}
}
}