*/
Check out and contribute to CodePedia, the wiki for developers.
*/

View c\turboc\LEDSUP.C

Printer Port Interfacing 1 V1.0

Submitted By: myscripting
Rating: starstarstarstar (Rate It)


/*********************************
walkup.c : stores values to be outputted in an array
then loops through them .
**********************************/

#include <stdio.h>

int main()
{
      int leds[9] = {0,1,2,4,8,16,32,64,128};
      int i;
      for(i = 0; i < 9; i++)
      {
        outport(0x378,leds[i]);
        sleep(1);
      }
      return 0;
}

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.