Blame | Last modification | View Log | Download
#include "D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik.h"#define LED PIN_D6 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5void main(){setup_adc_ports(NO_ANALOGS|VSS_VDD);setup_adc(ADC_CLOCK_DIV_2);setup_spi(SPI_SS_DISABLED);setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);setup_timer_1(T1_DISABLED);setup_timer_2(T2_DISABLED,0,1);setup_ccp1(CCP_OFF);setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard//Example blinking LED programwhile(true){output_low(LED);delay_ms(1000);output_high(LED);delay_ms(1000);}}