Line 86... |
Line 86... |
86 |
*/ |
86 |
*/ |
87 |
|
87 |
|
88 |
#define LED1 PIN_J7 |
88 |
#define LED1 PIN_J7 |
89 |
#define LED2 PIN_J6 |
89 |
#define LED2 PIN_J6 |
90 |
|
90 |
|
- |
|
91 |
#define ON(port) output_low(port); |
- |
|
92 |
#define OFF(port) output_high(port); |
- |
|
93 |
|
91 |
int1 s105AN; // Predchozi stav vypinacu |
94 |
int1 s105AN; // Predchozi stav vypinacu |
92 |
int1 r110NJU; |
95 |
int1 r110NJU; |
93 |
int1 r110NJD; |
96 |
int1 r110NJD; |
94 |
int1 s104AZ; |
97 |
int1 s104AZ; |
95 |
int1 r104VZU; |
98 |
int1 r104VZU; |
Line 134... |
Line 137... |
134 |
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); |
137 |
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); |
135 |
setup_ccp1(CCP_OFF); |
138 |
setup_ccp1(CCP_OFF); |
136 |
setup_comparator(NC_NC_NC_NC); |
139 |
setup_comparator(NC_NC_NC_NC); |
137 |
setup_vref(FALSE); |
140 |
setup_vref(FALSE); |
138 |
|
141 |
|
- |
|
142 |
OFF(OS101A); |
- |
|
143 |
|
139 |
s105AN=S105AN; // Poznamenej vychozi stav vypinacu |
144 |
s105AN=S105AN; // Poznamenej vychozi stav vypinacu |
140 |
r110NJU=R110NJU; |
145 |
r110NJU=R110NJU; |
141 |
r110NJD=R110NJD; |
146 |
r110NJD=R110NJD; |
142 |
s104AZ=S104AZ; |
147 |
s104AZ=S104AZ; |
143 |
r104VZU=R104VZU; |
148 |
r104VZU=R104VZU; |
Line 185... |
Line 190... |
185 |
|
190 |
|
186 |
if(s106AV!=S106AV) {s106AV=S106AV; send(S16A);} |
191 |
if(s106AV!=S106AV) {s106AV=S106AV; send(S16A);} |
187 |
if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);} |
192 |
if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);} |
188 |
if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);} |
193 |
if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);} |
189 |
|
194 |
|
190 |
if(s101AN!=S101AN) {s101AN=S101AN; send(S11A);} |
195 |
if(s101AN!=S101AN) {s101AN=S101AN; output_toggle(OS101A); delay_ms(100);} |
191 |
if(s101AJ!=S101AJ) {s101AJ=S101AJ; send(S11A);} |
196 |
if(s101AJ!=S101AJ) {s101AJ=S101AJ; output_toggle(OS101A); delay_ms(100);} |
192 |
|
197 |
|
193 |
if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);} |
198 |
if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);} |
194 |
if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);} |
199 |
if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);} |
195 |
if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);} |
200 |
if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);} |
- |
|
201 |
|
- |
|
202 |
if(get_timer0()>65000) {output_toggle(LED2); set_timer0(0);} |
196 |
} |
203 |
} |
197 |
} |
204 |
} |