Line 4... |
Line 4... |
4 |
#define MAX_SLOVO 10 // Maximalni pocet znaku ve slovu |
4 |
#define MAX_SLOVO 10 // Maximalni pocet znaku ve slovu |
5 |
|
5 |
|
6 |
int8 napis[MAX_SLOVO+1]; |
6 |
int8 napis[MAX_SLOVO+1]; |
7 |
int8 otacky; |
7 |
int8 otacky; |
8 |
|
8 |
|
9 |
const int8 logo[MAX_SLOVO+1]={'[',96,94,94,'b',']',96,94,94,'f',0}; // 2004-2008 |
9 |
const int8 logo[MAX_SLOVO+1]={'[','c','a','a','e',']','c','a','a','i',0}; // 2004-2008 |
10 |
const int8 rok[MAX_SLOVO+1]={'[','[',92,'[','E','b','A','[',92,'[',0}; // [blesk] E4A [blesk] |
10 |
const int8 rok[MAX_SLOVO+1]={'[','[',92,'[','E','e','A','[',92,'[',0}; // [blesk] E4A [blesk] |
11 |
|
11 |
|
12 |
#int_RDA |
12 |
#int_RDA |
13 |
void RDA_isr(void) |
13 |
void RDA_isr(void) |
14 |
{ |
14 |
{ |
15 |
int n; |
15 |
int n; |
Line 22... |
Line 22... |
22 |
|
22 |
|
23 |
void LED_print() |
23 |
void LED_print() |
24 |
{ |
24 |
{ |
25 |
unsigned int slovo,pismeno,sloupec,j; |
25 |
unsigned int slovo,pismeno,sloupec,j; |
26 |
3 |
26 |
3 |
27 |
const int8 pis[39*5]={0b00000001,0b11110110,0b11110110,0b11110110,0b00000001, //A |
27 |
const int8 pis[45*5]={0b00000001,0b11110110,0b11110110,0b11110110,0b00000001, // A |
28 |
0b00000000,0b01110110,0b01110110,0b01110110,0b10001001, //B |
28 |
0b00000000,0b01110110,0b01110110,0b01110110,0b10001001, // B |
29 |
0b10000001,0b01111110,0b01111110,0b01111110,0b10111101, //C |
29 |
0b10000001,0b01111110,0b01111110,0b01111110,0b10111101, // C |
30 |
0b00000000,0b01111110,0b01111110,0b01111110,0b10000001, //D |
30 |
0b00000000,0b01111110,0b01111110,0b01111110,0b10000001, // D |
31 |
0b00000000,0b01110110,0b01110110,0b01111110,0b01111110, //E |
31 |
0b00000000,0b01110110,0b01110110,0b01111110,0b01111110, // E |
32 |
0b00000000,0b11110110,0b11110110,0b11111110,0b11111110, //F |
32 |
0b00000000,0b11110110,0b11110110,0b11111110,0b11111110, // F |
33 |
0b10000001,0b01111110,0b01110110,0b01110110,0b10000101, //G |
33 |
0b10000001,0b01111110,0b01110110,0b01110110,0b10000101, // G |
34 |
0b00000000,0b11110111,0b11110111,0b11110111,0b00000000, //H |
34 |
0b00000000,0b11110111,0b11110111,0b11110111,0b00000000, // H |
35 |
0b01111110,0b01111110,0b00000000,0b01111110,0b01111110, //I |
35 |
0b01111110,0b01111110,0b00000000,0b01111110,0b01111110, // I |
36 |
0b10111110,0b01111110,0b01111110,0b01111110,0b10000000, //J |
36 |
0b10111110,0b01111110,0b01111110,0b01111110,0b10000000, // J |
37 |
0b00000000,0b11110111,0b11110111,0b11101011,0b00011100, //K |
37 |
0b00000000,0b11110111,0b11110111,0b11101011,0b00011100, // K |
38 |
0b00000000,0b01111111,0b01111111,0b01111111,0b01111111, //L |
38 |
0b00000000,0b01111111,0b01111111,0b01111111,0b01111111, // L |
39 |
0b00000000,0b11111110,0b11110000,0b11111110,0b00000000, //M |
39 |
0b00000000,0b11111110,0b11110000,0b11111110,0b00000000, // M |
40 |
0b00000000,0b11101111,0b11011111,0b10111111,0b00000000, //N |
40 |
0b00000000,0b11101111,0b11011111,0b10111111,0b00000000, // N |
41 |
0b10000001,0b01111110,0b01111110,0b01111110,0b10000001, //O |
41 |
0b10000001,0b01111110,0b01111110,0b01111110,0b10000001, // O |
42 |
0b00000000,0b11110110,0b11110110,0b11110110,0b11111001, //P |
42 |
0b00000000,0b11110110,0b11110110,0b11110110,0b11111001, // P |
43 |
0b10000001,0b01111110,0b01111110,0b01111110,0b00000001, //Q |
43 |
0b10000001,0b01111110,0b01111110,0b01111110,0b00000001, // Q |
44 |
0b00000000,0b11110110,0b11110110,0b11110110,0b00001001, //R |
44 |
0b00000000,0b11110110,0b11110110,0b11110110,0b00001001, // R |
45 |
0b10111001,0b01110110,0b01110110,0b01110110,0b10001101, //S |
45 |
0b10111001,0b01110110,0b01110110,0b01110110,0b10001101, // S |
46 |
0b11111110,0b11111110,0b00000000,0b11111110,0b11111110, //T |
46 |
0b11111110,0b11111110,0b00000000,0b11111110,0b11111110, // T |
47 |
0b10000000,0b01111111,0b01111111,0b01111111,0b10000000, //U |
47 |
0b10000000,0b01111111,0b01111111,0b01111111,0b10000000, // U |
48 |
0b11000000,0b10111111,0b01111111,0b10111111,0b11000000, //V |
48 |
0b11000000,0b10111111,0b01111111,0b10111111,0b11000000, // V |
49 |
0b10000000,0b01111111,0b10000000,0b01111111,0b10000000, //W |
49 |
0b10000000,0b01111111,0b10000000,0b01111111,0b10000000, // W |
50 |
0b00011100,0b11101011,0b11110111,0b11101011,0b00011100, //X |
50 |
0b00011100,0b11101011,0b11110111,0b11101011,0b00011100, // X |
51 |
0b11111000,0b11110111,0b00000111,0b11110111,0b11111000, //Y |
51 |
0b11111000,0b11110111,0b00000111,0b11110111,0b11111000, // Y |
52 |
0b00011110,0b01101110,0b01110110,0b01111010,0b01111100, //Z |
52 |
0b00011110,0b01101110,0b01110110,0b01111010,0b01111100, // Z |
53 |
0b11111111,0b11111111,0b11111111,0b11111111,0b11111111, //mezera [ 91 |
53 |
0b11111111,0b11111111,0b11111111,0b11111111,0b11111111, // mezera [ 91 |
54 |
0b00010111,0b00110011,0b01010101,0b11100110,0b11110111, //blesk \ 92 |
54 |
0b00010111,0b00110011,0b01010101,0b11100110,0b11110111, // blesk \ 92 |
55 |
0b11110111,0b11110111,0b11110111,0b11110111,0b11110111, //pomlka ] 93 |
55 |
0b11110111,0b11110111,0b11110111,0b11110111,0b11110111, // - ] 93 |
- |
|
56 |
0b11111111,0b11111111,0b01111111,0b11111111,0b11111111, // . ^ 94 |
- |
|
57 |
0b11111100,0b11110000,0b01000000,0b11110000,0b11111100, // ! _ 95 |
- |
|
58 |
0b11111101,0b11111110,0b01001110,0b11110110,0b11111001, // ? ` 96 |
56 |
0b00000000,0b01111110,0b01111110,0b01111110,0b00000000, //0 ^ 94 |
59 |
0b00000000,0b01111110,0b01111110,0b01111110,0b00000000, // 0 a |
57 |
0b01111011,0b01111101,0b00000000,0b01111111,0b01111111, //1 _ 95 |
60 |
0b01111011,0b01111101,0b00000000,0b01111111,0b01111111, // 1 b |
58 |
0b00111101,0b01011110,0b01101110,0b01110110,0b01111001, //2 ` 96 |
61 |
0b00111101,0b01011110,0b01101110,0b01110110,0b01111001, // 2 c |
59 |
0b10111101,0b01111110,0b01110110,0b01110110,0b10001001, //3 a 97 |
62 |
0b10111101,0b01111110,0b01110110,0b01110110,0b10001001, // 3 d |
60 |
0b11110000,0b11110111,0b11110111,0b00000001,0b11110111, //4 b 98 |
63 |
0b11110000,0b11110111,0b11110111,0b00000001,0b11110111, // 4 e |
61 |
0b10111000,0b01110110,0b01110110,0b01110110,0b10001110, //5 c 99 |
64 |
0b10111000,0b01110110,0b01110110,0b01110110,0b10001110, // 5 f |
62 |
0b10000001,0b01110110,0b01110110,0b01110110,0b10001101, //6 d 100 |
65 |
0b10000001,0b01110110,0b01110110,0b01110110,0b10001101, // 6 g |
63 |
0b11111110,0b11111110,0b00001110,0b11110110,0b11111000, //7 e 101 |
66 |
0b11111110,0b11111110,0b00001110,0b11110110,0b11111000, // 7 h |
64 |
0b10001001,0b01110110,0b01110110,0b01110110,0b10001001, //8 f 102 |
67 |
0b10001001,0b01110110,0b01110110,0b01110110,0b10001001, // 8 i |
65 |
0b10111001,0b01110110,0b01110110,0b01110110,0b10000001, //9 g 103 |
68 |
0b10111001,0b01110110,0b01110110,0b01110110,0b10000001, // 9 j |
- |
|
69 |
0b11111111,0b01111110,0b10111101,0b11000011,0b11111111, // ) k |
- |
|
70 |
0b11111111,0b11000011,0b10111101,0b01111110,0b11111111, // ( l |
- |
|
71 |
0b11111111,0b11111111,0b11111111,0b11011011,0b11111111, // : m |
66 |
}; |
72 |
}; |
67 |
|
73 |
|
68 |
while(read_adc()<9); // Cekani na magnet |
74 |
while(read_adc()<9); // Cekani na magnet |
69 |
delay_ms(10); |
75 |
delay_ms(10); |
70 |
|
76 |
|