![]() |
| | #1 (permalink) | ||
| my devc++
i have dev-c++ v.4992 i wrote this program #include <stdio.h> #include <conio.h> #include <dos.h> #define LPT1 0x378 int main(void) { unsigned char Valor=128; //in binar: 10000000 while( Valor > 0 ) { outportb(LPT1, Valor); // Portb LPT1 printf("\n LED..."); getch( ); Valor = Valor >> 1; } } and it not compile what can i do to make-it compile? i think i must put in include folder of devc++ some x.h or something but i dont now what or where to put. please help-me. daca e postat rau si nimeni n-are treaba cu ce e scris aici please dati-mi un forum unde pot primi un raspuns. aici e vb de cum pot accesa portul paralel lpt1 sa pot aprinde un led pus pe un pin. | |||
|
| Advertisment | |
![]() |
|
| Thread Tools | |
| |