Sat, 07 Nov 2015 13:23:07 +0100
Initial code from reprappro Marlin repository
0 | 1 | #ifndef __LEDH |
2 | ||
3 | #define __LEDH | |
4 | #include "Marlin.h" | |
5 | ||
6 | #if (LED_PIN > -1) | |
7 | void led_status(); | |
8 | void led_init(); | |
9 | ||
10 | #define LED_UPDATE_INTERVAL 100 | |
11 | #define LED_HOTEND_ACTIVE_FLASH 800 | |
12 | #define LED_ERROR_FLASH 200 | |
13 | #define LED_STATUS led_status() | |
14 | ||
15 | #else //no led | |
16 | #define LED_STATUS | |
17 | FORCE_INLINE void led_status() {}; | |
18 | #endif //LED_PIN > -1 | |
19 | ||
20 | #endif |