John If you need I/O, use the parallel port. You could get at most 16-bit I/O ports TTL level.
If you are stuck to using RS232, you should realize that it is serial. Data transaction is by stream. The only controllable logic pins would be RTS and DTR. Voltage level is RS232. The same is true for USB. Data are serial by nature. No I/O logic pins. The joystick or game port is even harder to use since the I/O pins are analog. Joystick motion is measured thru voltage generated by x-y potentiometers. rowel > Actually, I wanted it to be written in PHP. Just trying to have some fun, > like have a LED panel if my web and db server is up. > > On 9/20/06, Ariz Jacinto <[EMAIL PROTECTED]> wrote: >> >> perhaps you should start with the parallel port first, then >> serial, then USB (optional: Game port). i learned this >> back in college using this site: >> >> www.beyondlogic.org >> >> >> after dealing with the hardware concepts, you can >> easily program those ports using C, assembly, etc. >> but now i'm using PHP with the DIO extension to >> read and write data from those ports (sounds crazy, >> right?). check this out: >> >> http://geepeeyes.sourceforge.net/ >> >> >> >> >> >> >> On 9/18/06, John Peter Loh <[EMAIL PROTECTED]> wrote: >> > >> > I saw a tutorial on testing serial ports with an RS-232 Break Out Box >> > and echoing a chunk of text to /dev/ttyS0. >> > >> > /dev/ttyS0 is the first pin of the serial port, right? What should I >> > echo just to have one pin light up if I have a LED connected to it? >> Did I >> > get the right concept? Is there a site/page for the signalling? >> > >> > Thanks >> > >> > -- >> > JP Loh >> > >> > >> > >> > >> >> _________________________________________________ >> Philippine Linux Users' Group (PLUG) Mailing List >> [email protected] (#PLUG @ irc.free.net.ph) >> Read the Guidelines: http://linux.org.ph/lists >> Searchable Archives: http://archives.free.net.ph >> >> > > > -- > John Peter Loh > > Phone: +13602267476 > Web: http://www.jploh.com/ > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > [email protected] (#PLUG @ irc.free.net.ph) > Read the Guidelines: http://linux.org.ph/lists > Searchable Archives: http://archives.free.net.ph -- Diliman Network Solutions Inc Open-Source for Business Software Optimization Web: www.dnsph.com Tel/Fax: 436 3393 Mobile: 0917 8070831 Address: Rm 303 MQI Centre 42 E. Abada St. Loyola Heights, Quezon City, Philippines _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

