Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.22 KB | None | 0 0
  1. mydelay(400);
  2. clearDisplay();
  3. for(i=0; i<16; i++)
  4. {
  5.     if(i==12)
  6.     {
  7.         SEND_CHAR(0);
  8.  
  9.     }
  10.     SEND_CHAR(menu[i]);
  11. }
  12. SEND_CMD(DD_RAM_ADDR2);
  13. for(i=15; i<30; i++)
  14. {
  15.     SEND_CHAR(menu[i]);
  16. }
  17. Delayx100us(1000);
  18. }
  19. if((P4IN&BIT6)==0 && tworcy_pom==1)
  20. {
  21.     tworcy_pom=0;
  22.     clearDisplay();
  23.     ccc=0;
  24.     yyy=0;
  25.     int i;
  26.     for(i=0; i<16; i++)
  27.     {
  28.         SEND_CHAR(tytul[i]);
  29.     }
  30.     SEND_CMD(DD_RAM_ADDR2);
  31.     for(i=16; i<32; i++)
  32.     {
  33.         SEND_CHAR(tytul[i]);
  34.     }
  35.     mydelay(400);
  36.     clearDisplay();
  37.     for(i=0; i<16; i++)
  38.     {
  39.         if(i==12)
  40.         {
  41.             SEND_CHAR(0);
  42.         }
  43.  
  44.         SEND_CHAR(menu[i]);
  45.     }
  46.     SEND_CMD(DD_RAM_ADDR2);
  47.     for(i=15; i<30; i++)
  48.     {
  49.         SEND_CHAR(menu[i]);
  50.     }
  51.     Delayx100us(1000);
  52. }
  53. if((P4IN&BIT6)==0 && tworcy_pom==0)
  54. {
  55.     clearDisplay();
  56.     tworcy_pom=1;
  57.     SEND_CMD(DD_RAM_ADDR);
  58.     for(i=0; i<15; i++)
  59.     {
  60.         SEND_CHAR(tworcy[i]);
  61.     }
  62.     SEND_CMD(DD_RAM_ADDR2);
  63.     for(i=16; i<32; i++)
  64.     {
  65.         SEND_CHAR(tworcy[i]);
  66.     }
  67.     Delayx100us(1000);
  68. }
  69. if((P4IN&BIT5)==0 && wynik_pom==1)
  70. {
  71.  
  72.     wynik_pom=0;
  73.     clearDisplay();
  74.     ccc=0;
  75.     yyy=0;
  76.     int i;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement