Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Walking LEDs down 
 

 

Code

#include <conio.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
int leds[9] = {0,1,2,4,8,16,32,64,128};
int i;
for(i=9;i>=0;i--)
{
_outp(0x378,leds[i]);
_sleep(1000);

}
return 0;
}

Description

The values to be outputted are stored in an array and we then loop through them one a ta time.

Download

walkingledsdown.txt

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Enum example(C)
Center a form on the screen(VB)
Browser properties(Javascript)
display services in a console window(VB.net)
type of drive(VB)
CSV stock quotes(PHP)
populate a select menu from MySQL(PHP)
GD email address(PHP)

    




Copyright © 2003 by programmershelp.co.uk