Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<msp430x14x.h>
- #include<stdlib.h>
- #include<time.h>
- #include "lcd.h"
- #include "portyLcd.h"
- void konwersja(int liczba)
- {
- char tab[32];
- int v=0,i=0;
- if(liczba==0)
- {
- SEND_CHAR('0');
- return ;
- }
- while(liczba!=0)
- {
- tab[v]=liczba%10+48;
- liczba=liczba/10;
- v++;
- }
- for(i=v-1; i>=0; i--)
- {
- SEND_CHAR(tab[i]);
- }
- }
- void mydelay(int a)
- {
- int s=0;
- int d=0;
- for(s=0; s<a; s++)
- {
- for(d=0; d<a; d++)
- {
- _NOP();
- }
- }
- }
- void main( void )
- {
- int i;
- int highscore=0;
- srand(time(NULL));
- P4DIR&=~BIT4;
- P4DIR&=~BIT5;
- P4DIR&=~BIT6;
- P4DIR&=~BIT7;
- char customChar[] = {
- 0x02,
- 0x04,
- 0x0E,
- 0x11,
- 0x11,
- 0x11,
- 0x0E,
- 0x00,
- 0x0E,
- 0x0E,
- 0x05,
- 0x1F,
- 0x14,
- 0x04,
- 0x0A,
- 0x11,
- 0x11,
- 0x0E,
- 0x0E,
- 0x1F,
- 0x11,
- 0x1F,
- 0x11,
- 0x11
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement