| Line 1... |
Line 1... |
| 1 |
#include "C:\RS\Prog\abcda\abcda.h" |
1 |
#include "abcda.h" |
| 2 |
|
2 |
|
| 3 |
|
3 |
|
| 4 |
void main() |
4 |
void main() |
| 5 |
{ |
5 |
{ |
| 6 |
|
6 |
|
| 7 |
int cas; |
7 |
int i,j,n,cas; |
| 8 |
|
8 |
|
| 9 |
const int8 pis[26,7]={{0b00000001,0b11110110,0b11110110,0b11110110,0b00000001,0b11111111,0b11111111}, |
9 |
const int8 pis[2*5]={0b00000001,0b11110110,0b11110110,0b11110110,0b00000001, |
| 10 |
const int8 B[7]={0b00000000,0b01110110,0b01110110,0b01110110,0b10001001,0b11111111,0b11111111}; |
- |
|
| 11 |
const int8 C[7]={0b10000001,0b01111110,0b01111110,0b01111110,0b10111101,0b11111111,0b11111111}; |
- |
|
| 12 |
const int8 D[7]={0b00000000,0b01111110,0b01111110,0b01111110,0b10000001,0b11111111,0b11111111}; |
- |
|
| 13 |
const int8 E[7]={0b00000000,0b01110110,0b01110110,0b01111110,0b01111110,0b11111111,0b11111111}; |
- |
|
| 14 |
const int8 F[7]={0b00000000,0b11110110,0b11110110,0b11111110,0b11111110,0b11111111,0b11111111}; |
- |
|
| 15 |
const int8 G[7]={0b10000001,0b01111110,0b01110110,0b01110110,0b10000101,0b11111111,0b11111111}; |
- |
|
| 16 |
const int8 H[7]={0b00000000,0b11110111,0b11110111,0b11110111,0b00000000,0b11111111,0b11111111}; |
- |
|
| 17 |
const int8 I[7]={0b01111110,0b01111110,0b00000000,0b01111110,0b01111110,0b11111111,0b11111111}; |
- |
|
| 18 |
const int8 J[7]={0b10111110,0b01111110,0b01111110,0b01111110,0b10000000,0b11111111,0b11111111}; |
- |
|
| 19 |
const int8 K[7]={0b00000000,0b11110111,0b11110111,0b11101011,0b00011100,0b11111111,0b11111111}; |
- |
|
| 20 |
const int8 L[7]={0b00000000,0b01111111,0b01111111,0b01111111,0b01111111,0b11111111,0b11111111}; |
- |
|
| 21 |
const int8 M[7]={0b00000000,0b11111110,0b11110000,0b11111110,0b00000000,0b11111111,0b11111111}; |
- |
|
| 22 |
const int8 N[7]={0b00000000,0b11101111,0b11011111,0b10111111,0b00000000,0b11111111,0b11111111}; |
- |
|
| 23 |
const int8 O[7]={0b10000001,0b01111110,0b01111110,0b01111110,0b10000001,0b11111111,0b11111111}; |
- |
|
| 24 |
const int8 P[7]={0b00000000,0b11110110,0b11110110,0b11110110,0b11111001,0b11111111,0b11111111}; |
- |
|
| 25 |
const int8 Q[7]={0b10000001,0b01111110,0b01111110,0b01111110,0b00000001,0b01111111,0b11111111}; |
- |
|
| 26 |
const int8 R[7]={0b00000000,0b11110110,0b11110110,0b11110110,0b00001001,0b11111111,0b11111111}; |
10 |
0b00000001,0b11110110,0b11110110,0b11110110,0b00000001}; |
| 27 |
const int8 S[7]={0b10111001,0b01110110,0b01110110,0b01110110,0b10001101,0b11111111,0b11111111}; |
- |
|
| 28 |
const int8 T[7]={0b11111110,0b11111110,0b00000000,0b11111110,0b11111110,0b11111111,0b11111111}; |
- |
|
| 29 |
const int8 U[7]={0b10000000,0b01111111,0b01111111,0b01111111,0b10000000,0b11111111,0b11111111}; |
- |
|
| 30 |
const int8 V[7]={0b11000000,0b10111111,0b01111111,0b10111111,0b11000000,0b11111111,0b11111111}; |
- |
|
| 31 |
const int8 W[7]={0b10000000,0b01111111,0b10000000,0b01111111,0b10000000,0b11111111,0b11111111}; |
- |
|
| 32 |
const int8 X[7]={0b00011100,0b11101011,0b11110111,0b11101011,0b00011100,0b11111111,0b11111111}; |
- |
|
| 33 |
const int8 Y[7]={0b11111000,0b11110111,0b00000111,0b11110111,0b11111000,0b11111111,0b11111111}; |
- |
|
| 34 |
const int8 Z[7]={0b00011110,0b01101110,0b01110110,0b01111010,0b01111100,0b11111111,0b11111111}; |
- |
|
| 35 |
const int8 null [7]={0b00000000,0b01111110,0b01111110,0b01111110,0b00000000,0b11111111,0b11111111}; |
- |
|
| 36 |
const int8 one [7]={0b01111011,0b01111101,0b00000000,0b01111111,0b01111111,0b11111111,0b11111111}; |
- |
|
| 37 |
const int8 two [7]={0b00111101,0b01011110,0b01101110,0b01110110,0b01111001,0b11111111,0b11111111}; |
- |
|
| 38 |
const int8 three[7]={0b10111101,0b01111110,0b01110110,0b01110110,0b10001001,0b11111111,0b11111111}; |
- |
|
| 39 |
const int8 four [7]={0b11110000,0b11110111,0b11110111,0b00000001,0b11110111,0b11111111,0b11111111}; |
- |
|
| 40 |
const int8 five [7]={0b10111000,0b01110110,0b01110110,0b01110110,0b10001110,0b11111111,0b11111111}; |
- |
|
| 41 |
const int8 six [7]={0b10000001,0b01110110,0b01110110,0b01110110,0b10001101,0b11111111,0b11111111}; |
- |
|
| 42 |
const int8 seven[7]={0b11111110,0b11111110,0b00001110,0b11110110,0b11111000,0b11111111,0b11111111}; |
- |
|
| 43 |
const int8 eight[7]={0b10001001,0b01110110,0b01110110,0b01110110,0b10001001,0b11111111,0b11111111}; |
- |
|
| 44 |
const int8 nine [7]={0b10111001,0b01110110,0b01110110,0b01110110,0b10000001,0b11111111,0b11111111}; |
- |
|
| 45 |
|
- |
|
| 46 |
const int8 napis[2,8]={{1,1,2,2,4,5,6,7},{1,1,2,2,4,5,6,7}}; |
11 |
int8 napis[2*8]; |
| 47 |
|
12 |
|
| 48 |
setup_adc_ports(NO_ANALOGS); |
13 |
setup_adc_ports(NO_ANALOGS); |
| 49 |
setup_adc(ADC_OFF); |
14 |
setup_adc(ADC_OFF); |
| 50 |
setup_psp(PSP_DISABLED); |
15 |
setup_psp(PSP_DISABLED); |
| 51 |
setup_spi(SPI_SS_DISABLED); |
16 |
setup_spi(SPI_SS_DISABLED); |
| 52 |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
17 |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
| Line 55... |
Line 20... |
| 55 |
setup_comparator(NC_NC_NC_NC); |
20 |
setup_comparator(NC_NC_NC_NC); |
| 56 |
setup_vref(FALSE); |
21 |
setup_vref(FALSE); |
| 57 |
|
22 |
|
| 58 |
while(TRUE) |
23 |
while(TRUE) |
| 59 |
{ |
24 |
{ |
| 60 |
for(i=0;i<=2;i++) |
25 |
for(i=0;i<=2;i++) |
| 61 |
for(j=0;j<=100;j++) |
26 |
for(j=0;j<=100;j++) |
| 62 |
{ |
27 |
{ |
| 63 |
for(n=0;n<=8;n++) |
28 |
for(n=0;n<=8;n++) |
| 64 |
{ |
29 |
{ |
| 65 |
for(cas=0;cas<5;cas++) |
30 |
for(cas=0;cas<5;cas++) |
| 66 |
{ |
31 |
{ |
| 67 |
output_B(pis[napis[i,n],cas]); |
32 |
output_B(pis[napis[i-0x40]+cas]); |
| 68 |
delay_ms(1); |
33 |
delay_ms(1); |
| 69 |
} |
34 |
} |
| 70 |
delay_ms(2); |
35 |
delay_ms(2); |
| 71 |
} |
36 |
} |
| 72 |
delay_ms(142); |
37 |
delay_ms(142); |
| 73 |
} |
38 |
} |
| 74 |
|
39 |
} |
| 75 |
} |
40 |
} |