//******************************************************************************
// Template	for Use With IF24-20 PIC18 Microcontroller Board		S215  09 0731
// *****************************************************************************
#include "s215-header8.h" 

#pragma code
void main (void)
{
InitPorts();
//----------------------------------
while (1==1)
{
//|||||||||||||||||||||||||| Main Loop ||||||||||||||||||||||||||||||||
LED0 = SW0;
LED1 = PB;
DispN(ADC8msb(), 3, 0);	//Display a number corresponding to the position of the pot.

//|||||||||||||||||||||||| End of Main Loop ||||||||||||||||||||||||||		
}
}
