конфигурация на периферията - main.h

#define led1   PORTAbits.RA0 // pin 17 Green1 - set pin with name for use in source code
#define led2   PORTAbits.RA1 // pin 18 Red1
#define led3   PORTAbits.RA2 // pin 1 Blue1
#define led4   PORTAbits.RA3 // pin 2 Green2
#define led5   PORTAbits.RA4 // pin 3 Red2
#define button  PORTAbits.RA5 // pin 4 only input pin - /MCLR pin
#define led6   PORTAbits.RA6 // pin 15 Bed2
#define led7   PORTAbits.RA7 // pin 16 Green3

#define led8   PORTBbits.RB0 // pin 6 Red3
#define led9   PORTBbits.RB1 // pin 7 Blue3
#define led10  PORTBbits.RB2 // pin 8 Green4
#define led11  PORTBbits.RB3 // pin 9 Red4
#define led12  PORTBbits.RB4 // pin 10 Blue4
#define led13  PORTBbits.RB5 // pin 11 Green5
#define led14  PORTBbits.RB6 // pin 12 Red5
#define led15  PORTBbits.RB7 // pin 13 Blue5

#define _XTAL_FREQ 8000000 // set clock frequency for correct using of __delay_ms(value);