Étape 2: Programme pour clin 7 LED de sequnce
Branchez le port parallèle de pc et exécutez ci-dessous programme en turbo compilateur c.
#include < stdio.h >
#include < dos.h >
#include < conio.h >
#include < math.h >
Sub main()
{
int i ;
pour (i = 0; i < = 7; i ++)
{
Outport(0x378,Pow(2,i)) ;
Delay(1000) ;
Outport(0x378,0) ;
Delay(500) ;
}
getch() ;