File tree 5 files changed +37
-16
lines changed
hardware/MySensors/samd/variants/mysensors_gw
5 files changed +37
-16
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
191
191
192
192
193
193
#define MY_SIGNING_ATSHA204_PIN 17
194
- #define MY_DEFAULT_ERR_LED_PIN LED_RED
195
- #define MY_DEFAULT_RX_LED_PIN LED_YELLOW
196
- #define MY_DEFAULT_TX_LED_PIN LED_GREEN
194
+ #define MY_HW_ERR_LED_PIN LED_RED
195
+ #define MY_HW_RX_LED_PIN LED_YELLOW
196
+ #define MY_HW_TX_LED_PIN LED_GREEN
197
197
198
198
/*----------------------------------------------------------------------------
199
199
* Arduino objects - C++ only
Original file line number Diff line number Diff line change 56
56
#include "core/MyHwSAMD.cpp"
57
57
#endif
58
58
59
+ #if !defined(MY_DEFAULT_ERR_LED_PIN ) & defined(MY_HW_ERR_LED_PIN )
60
+ #define MY_DEFAULT_ERR_LED_PIN MY_HW_ERR_LED_PIN
61
+ #endif
62
+
63
+ #if !defined(MY_DEFAULT_TX_LED_PIN ) && defined(MY_HW_TX_LED_PIN )
64
+ #define MY_DEFAULT_TX_LED_PIN MY_HW_TX_LED_PIN
65
+ #endif
66
+
67
+ #if !defined(MY_DEFAULT_RX_LED_PIN ) && defined(MY_HW_TX_LED_PIN )
68
+ #define MY_DEFAULT_TX_LED_PIN MY_HW_TX_LED_PIN
69
+ #endif
70
+
71
+ // Not necessary to include blinking feature if no LED's are defined!
72
+ #if defined(MY_LEDS_BLINKING_FEATURE ) && !defined(MY_DEFAULT_RX_LED_PIN ) && !defined(MU_DEFAULT_TX_LED_PIN ) && !defined(MY_ERR_LED_PIN )
73
+ #undef MY_LEDS_BLINKING_FEATURE
74
+ #endif
75
+
76
+ // Enable LED BLINKING FEATURE, if there are any LEDs defined.
77
+ #if defined(MY_DEFAULT_RX_LED_PIN ) || defined(MY_DEFAULT_ERR_LED ) || defined(MY_DEFAULT_TX_LED_PIN )
78
+ #define MY_LEDS_BLINKING_FEATURE
79
+ #endif
80
+
59
81
// LEDS
60
82
#if defined(MY_LEDS_BLINKING_FEATURE )
61
83
#include "core/MyLeds.cpp"
Original file line number Diff line number Diff line change 72
72
// Digital pin used for inclusion mode button
73
73
#define MY_INCLUSION_MODE_BUTTON_PIN 3
74
74
75
- #ifndef MY_DEFAULT_ERR_LED_PIN
76
- #define MY_DEFAULT_ERR_LED_PIN 4 // Error led pin
77
- #define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin
78
- #define MY_DEFAULT_TX_LED_PIN 5 // the PCB, on board LED
79
- #endif
75
+ // Uncomment to override default HW configurations
76
+ // #define MY_DEFAULT_ERR_LED_PIN 4 // Error led pin
77
+ // #define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin
78
+ // #define MY_DEFAULT_TX_LED_PIN 5 // the PCB, on board LED
80
79
81
80
#include < SPI.h>
82
81
#include < MySensor.h>
Original file line number Diff line number Diff line change 100
100
// Digital pin used for inclusion mode button
101
101
#define MY_INCLUSION_MODE_BUTTON_PIN 3
102
102
103
- #ifndef MY_DEFAULT_ERR_LED_PIN
104
- #define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin
105
- #define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin
106
- #define MY_DEFAULT_TX_LED_PIN 9 // the PCB, on board LED
107
- #endif
103
+ // Uncomment to override default HW configurations
104
+ // #define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin
105
+ // #define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin
106
+ // #define MY_DEFAULT_TX_LED_PIN 9 // the PCB, on board LED
108
107
109
108
#include < SPI.h>
110
109
Original file line number Diff line number Diff line change 125
125
// Digital pin used for inclusion mode button
126
126
#define MY_INCLUSION_MODE_BUTTON_PIN 3
127
127
128
- #define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin
129
- #define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin
130
- #define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED
128
+ // Uncomment to override default HW configurations
129
+ //#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin
130
+ //#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin
131
+ //#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED
131
132
*/
132
133
133
134
#include < Ethernet.h>
You can’t perform that action at this time.
0 commit comments