Rev 3614 Rev 3615
Line 1... Line 1...
1 #include "Z:\home\kakl\svn\MLAB\Designs\LX200obfuscator\SW\PIC18F4550\main.h" 1 /***** LX200obfuscator *****/
-   2 /***** 2014 (c) MLAB *****/
2   3  
-   4 #include "main.h"
3   5  
-   6  
4 #define LX200 PIN_E0 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5 7 #define LX200 PIN_E0 // Connection to the LX200
5   8  
6 void main() 9 void main()
7 { 10 {
8   11  
9 setup_adc_ports(NO_ANALOGS|VSS_VDD); 12 setup_adc_ports(NO_ANALOGS|VSS_VDD);
Line 15... Line 18...
15 setup_timer_1(T1_DISABLED); 18 setup_timer_1(T1_DISABLED);
16 setup_timer_2(T2_DISABLED,0,1); 19 setup_timer_2(T2_DISABLED,0,1);
17 setup_timer_3(T3_DISABLED|T3_DIV_BY_1); 20 setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
18 setup_comparator(NC_NC_NC_NC); 21 setup_comparator(NC_NC_NC_NC);
19 setup_vref(FALSE); 22 setup_vref(FALSE);
-   23  
20 while(TRUE) 24 while(TRUE)
21 { 25 {
22 output_low(LX200); 26 output_low(LX200);
23 delay_ms(1000); 27 delay_ms(1000);
24 output_high(LX200); 28 output_high(LX200);