Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mydelay(400);
- clearDisplay();
- for(i=0; i<16; i++)
- {
- if(i==12)
- {
- SEND_CHAR(0);
- }
- SEND_CHAR(menu[i]);
- }
- SEND_CMD(DD_RAM_ADDR2);
- for(i=15; i<30; i++)
- {
- SEND_CHAR(menu[i]);
- }
- Delayx100us(1000);
- }
- if((P4IN&BIT6)==0 && tworcy_pom==1)
- {
- tworcy_pom=0;
- clearDisplay();
- ccc=0;
- yyy=0;
- int i;
- for(i=0; i<16; i++)
- {
- SEND_CHAR(tytul[i]);
- }
- SEND_CMD(DD_RAM_ADDR2);
- for(i=16; i<32; i++)
- {
- SEND_CHAR(tytul[i]);
- }
- mydelay(400);
- clearDisplay();
- for(i=0; i<16; i++)
- {
- if(i==12)
- {
- SEND_CHAR(0);
- }
- SEND_CHAR(menu[i]);
- }
- SEND_CMD(DD_RAM_ADDR2);
- for(i=15; i<30; i++)
- {
- SEND_CHAR(menu[i]);
- }
- Delayx100us(1000);
- }
- if((P4IN&BIT6)==0 && tworcy_pom==0)
- {
- clearDisplay();
- tworcy_pom=1;
- SEND_CMD(DD_RAM_ADDR);
- for(i=0; i<15; i++)
- {
- SEND_CHAR(tworcy[i]);
- }
- SEND_CMD(DD_RAM_ADDR2);
- for(i=16; i<32; i++)
- {
- SEND_CHAR(tworcy[i]);
- }
- Delayx100us(1000);
- }
- if((P4IN&BIT5)==0 && wynik_pom==1)
- {
- wynik_pom=0;
- clearDisplay();
- ccc=0;
- yyy=0;
- int i;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement