led.h

Sat, 07 Nov 2015 13:23:07 +0100

author
mbayer
date
Sat, 07 Nov 2015 13:23:07 +0100
changeset 0
2c8ba1964db7
permissions
-rw-r--r--

Initial code from reprappro Marlin repository

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

mercurial