السلام عليكم
قمت بتجربة هذا الكود ولم توجد به أية أخطاء
#include <stdio.h>
#include <dos.h>
#include <conio.h>
/********************************************/
/*This program set the parallel port outputs*/
/********************************************/
void main (void)
{
clrscr();
outportb(0x378,0xff);
outportb(0x37a,0xff);
getch();}غيرته إلى
#include <stdio.h>
#include <dos.h>
#include <conio.h>
/********************************************/
/*This program set the parallel port outputs*/
/********************************************/
void main (void)
{
clrscr();
outportb(0x378,0x00);
outportb(0x37a,0x00);
getch();}حتى أقوم بإطفاء جميع ال LED
وأيضا هذا الكود
#include"conio.h"
#include"dos.h"
#define PORT 0x378
void main()
{
while(!kbhit())
{
outportb(PORT, ~inportb(PORT) );
delay(1000);
}
}الذي يجعل ال LEDs تشعل وتظفئ بسرعة معينة
المشكلة أن ال LEDs دائما ON !! يعني دائما على وضع ال 1
ما الحل ؟

