They're just wigling a pin to show you that you can do something while you're waiting for a key to be received. The 'input' is to get the current state of the pin so that the opposite can be output. Phil "John C. Frenzel" wrote: > > I was going to use CCS's KBHIT function. In the example on pg 46 of the > manual they have the following code fragment > > keypress=' '; > while ( keypress!='Q' ) { > if ( kbhit () ) > keypress=getc(); > if (!input(PIN_B2)) <--------------What is this for?? > output_high(PIN_B3); > else > output_low(PIN_B3); > } > > Is the serial input line is on pin B2? > > Any other ideas? > > Thanks, > John