Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contor = 0;
- while(contor<strlen(sir))
- {
- if (PINA.0==0)
- { dec();
- sir[contor] = val;
- }
- if (PINA.1==0)
- { inc();
- sir[contor]=val;
- }
- if (PINA.2==0)
- {
- contor++;
- }
- while(PINA.2!=0){
- lcd_gotoxy(0, 0);
- sprintf(sir,"%d%d:%d%d:%d%d:%d%d", Hour/10, Hour%10, Min/10, Min%10, Sec/10, Sec%10, HSec/10, HSec%10);
- lcd_puts(sir);
- delay(1000);
- sir[contor] = ' ';
- lcd_gotoxy(0, 0);
- lcd_puts(sir);
- delay(1000);
- }
- }
- contor = 0;
- while(contor < strlen(sir1))
- {
- {
- if (PINA.0==0)
- { dec();
- sir1[contor] = val;
- }
- if (PINA.1==0)
- { inc();
- sir1[contor]=val;
- }
- if (PINA.2==0)
- {
- contor++;
- }
- while(PINA.2!=0){
- lcd_gotoxy(0, 1);
- sprintf(sir1,"%d%d:%d%d:%d", Date/10, Date%10, Month/10, Month%10, Year1);
- lcd_puts(sir1);
- delay(1000);
- sir1[contor] = ' ';
- lcd_gotoxy(0, 1);
- lcd_puts(sir1);
- delay(1000);
- }
- }
- }
Add Comment
Please, Sign In to add comment