Yeah, it's messy all right. That was the very first program I ever wrote in C, as I was teaching myself how. I'd have yanked it from the web site long ago, but people keep asking for it. Dale --- We are Dyslexia of Borg. Fusistance is retile. Your ass will be laminated. On Fri, 9 Aug 2002, John Dammeyer wrote: > Bad programming practice. > > void main() { > > init hardware. > > Do the test code. > > main(); > } > > > Better to do it this way: > > void main() { > > init hardware. > > while ( 1 ) do { > Do the test code. > } > } > > > John Dammeyer > > > -----Original Message----- > > From: pic microcontroller discussion list > > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Pic Dude > > > > If you reduce the font size, you can shrink the > > code to much less than 20 pages. :-) > > > > Seriously though, perhaps this may be smaller code > > than what you have... > > http://www.botkin.org/dale/servo_tester.htm > > > > Courtesy of Dale Botkin when I asked a similar > > question some weeks back. > > > > Cheers, > > -Neil. > > > > > > > > > > > -----Original Message----- > > > From: pic microcontroller discussion list > > > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Nick Stedman > > > Sent: Friday, August 09, 2002 5:59 PM > > > To: PICLIST@MITVMA.MIT.EDU > > > Subject: [PIC] Simple Servo Code > > > > > > > > > Hello, > > > > > > I'm seeking some code to drive a hobby servo. I understand the -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu