thank you very much Angry Badger!!
this PWM code is the basic right? what if i have to include a push button operation where it will become bright and dim according to the press of 2 push buttons?
and the use of definitions:
#pragma config CONFIG1H = 0X08;
#pragma config CONFIG2L = 0X19;
#pragma config CONFIG2H = 0X1E;
#pragma config CONFIG3H = 0X83; // MCLRE = off is 0x81
#pragma config CONFIG4L = 0X80;
#pragma config CONFIG5L = 0X0F;
#pragma config CONFIG5H = 0XC0;
#pragma config CONFIG6L = 0X0F;
#pragma config CONFIG6H = 0XE0;
#pragma config CONFIG7L = 0X0F;
#pragma config CONFIG7H = 0X40;
refers to what? as we write the definitions as ;
#pragma config OSC=XT
#pragma config DEBUG=ON
#pragma config LVP=OFF
#pragma config WDT=OFF
#pragma config PBADEN=OFF
and you are using an external crystal of 8MHz?