Add LED blinking support into MySensor without any library dependency

Signed-off-by: Tomas Hozza <thozza@gmail.com>
This commit is contained in:
Tomas Hozza
2015-05-06 21:45:00 +02:00
parent f015fa1d91
commit 58efd872f4
3 changed files with 135 additions and 0 deletions
+20
View File
@@ -45,6 +45,26 @@
#define MY_OTA_FLASH_JDECID 0x1F65
/**********************************
* Information LEDs blinking
***********************************/
// This feature enables LEDs blinking on message receive, transmit
// or if some error occured. This was commonly used only in gateways,
// but now can be used in any sensor node. Also the LEDs can now be
// disabled in the gateway.
// #define WITH_LEDS_BLINKING
// default LEDs blinking period in milliseconds
#define DEFAULT_LED_BLINK_PERIOD 300
// The RX LED default pin
#define DEFAULT_RX_LED_PIN 8
// The TX LED default pin
#define DEFAULT_TX_LED_PIN 9
// The Error LED default pin
#define DEFAULT_ERR_LED_PIN 7
/**********************************
* Message Signing Settings
***********************************/