Subversion Repositories HomeAutomation

Rev

Rev 192 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 192 Rev 196
Line 169... Line 169...
169
 
169
 
170
    /* Enable IO-pin interrupt */
170
    /* Enable IO-pin interrupt */
171
    PCICR |= (1<<PCIE1);
171
    PCICR |= (1<<PCIE1);
172
    /* Unmask PD6 and PD7 */
172
    /* Unmask PD6 and PD7 */
173
    PCMSK2 |= (1<<PCINT22) | (1<<PCINT23);
173
    PCMSK2 |= (1<<PCINT22) | (1<<PCINT23);
174
        /* Button pressed */
-
 
175
#endif
174
#endif
176
 
-
 
177
 
-
 
178
    sei();
175
    sei();
179
 
176
 
180
    /* Turn relay off */
177
    /* Turn relay off */
181
    relayStatus = relayOff();
178
    relayStatus = relayOff();
182
 
179