135 Enter++; |
137 Enter++; |
136 if (Enter > PRESS_NORMAL) |
138 if (Enter > PRESS_NORMAL) |
137 Key_Enter = TRUE; |
139 Key_Enter = TRUE; |
138 if (Enter > PRESS_LONG) |
140 if (Enter > PRESS_LONG) |
139 Key_Enter_Long = TRUE; |
141 Key_Enter_Long = TRUE; |
140 #ifdef HAVE_WIRINGPI_H |
142 if (Enter == PRESS_LONG) { |
141 if (Enter == PRESS_LONG) |
143 #ifdef HAVE_WIRINGPI_H |
142 digitalWrite(PANEL_LED, 1); |
144 digitalWrite(PANEL_LED, 1); |
143 if (Enter == (PRESS_LONG + 10)) |
145 #endif |
|
146 leds |= SLED_TFLED; |
|
147 slcdLEDs(slcdHandle); |
|
148 } |
|
149 if (Enter == (PRESS_LONG + 10)) { |
|
150 #ifdef HAVE_WIRINGPI_H |
144 digitalWrite(PANEL_LED, 0); |
151 digitalWrite(PANEL_LED, 0); |
145 #endif |
152 #endif |
|
153 leds &= ~SLED_TFLED; |
|
154 slcdLEDs(slcdHandle); |
|
155 } |
146 } |
156 } |
147 |
157 |
148 #ifdef HAVE_WIRINGPI_H |
158 #ifdef HAVE_WIRINGPI_H |
149 if (digitalRead(PANEL_UP) && ((keys & 0x0008) == 0)) { |
159 if (digitalRead(PANEL_UP) && ((keys & 0x0008) == 0)) { |
150 #else |
160 #else |