From owner-freebsd-hackers Sun Oct 27 13:26:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27CAF37B401 for ; Sun, 27 Oct 2002 13:26:54 -0800 (PST) Received: from blackbox.yayproductions.com (h-66-166-17-53.SNVACAID.covad.net [66.166.17.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41A8443E42 for ; Sun, 27 Oct 2002 13:26:53 -0800 (PST) (envelope-from davek@saturn5.com) Received: from localhost (davek@localhost) by blackbox.yayproductions.com (8.11.6/8.11.3) with ESMTP id g9RLKdB00715 for ; Sun, 27 Oct 2002 13:20:39 -0800 (PST) (envelope-from davek@saturn5.com) X-Authentication-Warning: blackbox.yayproductions.com: davek owned process doing -bs Date: Sun, 27 Oct 2002 13:20:39 -0800 (PST) From: David Nicholas Kayal X-X-Sender: davek@blackbox.yayproductions.com To: freebsd-hackers@freebsd.org Subject: Show me the light Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I got a LED and touched it to the positive and negative ends of two 1.5v AA batteries in a serial configuration. The LED lit up. I then crimped on pins to the end of the LED wires and again tested it with the batteries. Again, I saw the light. I plugged said tinned pins into the 2nd and 25th pinout of a 25 pin port (the parallel port): positive lead to the 2 pin, and negative pin to\ the the 25 pin. I then executed the following program: I have written a small program: #include #include #include int main() { int fd; while(1) { ioctl(fd, PPISDATA, 255); } } I am expecting to see that LED light up, flashing if not creating a solid light. However, I am not. any help would be very much appreciated Sincerely, David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message