88,6 → 88,9 |
#define LED1 PIN_J7 |
#define LED2 PIN_J6 |
|
#define ON(port) output_low(port); |
#define OFF(port) output_high(port); |
|
int1 s105AN; // Predchozi stav vypinacu |
int1 r110NJU; |
int1 r110NJD; |
136,6 → 139,8 |
setup_comparator(NC_NC_NC_NC); |
setup_vref(FALSE); |
|
OFF(OS101A); |
|
s105AN=S105AN; // Poznamenej vychozi stav vypinacu |
r110NJU=R110NJU; |
r110NJD=R110NJD; |
187,11 → 192,13 |
if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);} |
if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);} |
|
if(s101AN!=S101AN) {s101AN=S101AN; send(S11A);} |
if(s101AJ!=S101AJ) {s101AJ=S101AJ; send(S11A);} |
if(s101AN!=S101AN) {s101AN=S101AN; output_toggle(OS101A); delay_ms(100);} |
if(s101AJ!=S101AJ) {s101AJ=S101AJ; output_toggle(OS101A); delay_ms(100);} |
|
if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);} |
if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);} |
if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);} |
|
if(get_timer0()>65000) {output_toggle(LED2); set_timer0(0);} |
} |
} |