Hi,
Help me , i tried to control a LED using my computer , but I failed . The
program is following
#include <sys/io.h>
#define BASE 0x3bc
#define RANGE 8
#define ON 1
#define OFF 0
main()
{
printf("about to open the parallel port\n");
ioperm(BASE , RANGE, ON);
outb( 255 , BASE);
sleep(10);
perror("Port");
ioperm(BASE , RANGE, OFF);
}
Now the port (of course parallel port) successfully & I think outb also works
, but nothing changes in the pins of parallel port , I connected the LED at 3
& 18 line no of th parallel port , but it reamain off , but when I connected
it with 4 & 18 it remain on for all the time.
I hoping responce fro the to kernel hackers & embaded system guys.
Another thing how to control a motor ( say truning it CW & CCW).
Anirban Biswas.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3