2,10 → 2,10 |
|
#case |
|
#define REVERS 2 // 2*256 ms = 0,5 s |
#define REVERS 3 // 2*256 ms = 0,75 s |
#define GO 117 // 117*256 ms = 30 s |
#define GO_ZALUZIE 5 // 5*256 ms = 1,25 s |
#define RECEIVE 12 // 3 s |
#define GO_ZALUZIE 6 // cca 1,5 s |
#define RECEIVE 10 // cca 2,6 s |
|
#define S105A PIN_A0 |
#define R110NU PIN_A1 |
217,7 → 217,11 |
r110N=STOP; |
r104V=STOP; |
r104J=STOP; |
|
tr103V=0; |
tr110N=0; |
tr104V=0; |
tr104J=0; |
|
output_high(LED1); // Indikace restartu |
delay_ms(100); |
output_low(LED1); |
348,12 → 352,12 |
case REVERS_UP: |
OFF(R110NU); |
OFF(R110ND); |
if(tr110N==0) {r110N=GO_UP; tr110N=GO_ZALUZIE;} |
if(tr110N==0) {r110N=GO_UP; tr110N=GO_ZALUZIE;} // Nahoru pouze kratce na otevreni zaluzie |
break; |
case REVERS_DOWN: |
OFF(R110NU); |
OFF(R110ND); |
if(tr110N==0) {r110N=GO_DOWN; tr110N=GO_ZALUZIE;} |
if(tr110N==0) {r110N=GO_DOWN; tr110N=2*GO_ZALUZIE;} // Dolu jede dele, aby se najelo na koncak a zatemnilo. |
break; |
} |
/* |