#include #include #include #include #include int ipow(int base, int power){ int counter; int running=1; for (counter=0; counter '0')){ pos= 1300 + ((c1-48)*50); } else { pos = 50*(c1-97); } fseek(fonts, pos, SEEK_SET); for (j=0; j<8; j++){ fgets(buff1[j], 8, fonts); } for (j=0; j<8; j++){ printf("%s", buff1[j]); } for (j=0; j<5; j++){ bin1=0; for (k=0; k<8; k++){ if (buff1[k][j] == '+') bin1 += ipow(2,k); } printf("%d, ", bin1); portdata = (__u8) (255-bin1); outb(portdata, LP_BASE); usleep(50000); } portdata = (__u8) 255; outb(portdata, LP_BASE); usleep(50000); i++; //c1 = wrd1[i]; c1 = argv[count][i]; } } fclose(fonts); // outb(portdata, LP_BASE); ioperm(LP_BASE, 3, 0); return 0; }