Skip to content

Commit b8d8276

Browse files
committed
Added LEDs to the arduino HW definitions
1 parent 07f1ba9 commit b8d8276

File tree

1 file changed

+11
-6
lines changed
  • hardware/MySensors/samd/variants/mysensors_gw

1 file changed

+11
-6
lines changed

hardware/MySensors/samd/variants/mysensors_gw/variant.h

+11-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ extern "C"
4848
/*----------------------------------------------------------------------------
4949
* Pins
5050
*----------------------------------------------------------------------------*/
51-
#define MY_W5100_SPI_EN 4
52-
#define MY_SIGNING_ATSHA204_PIN 17
5351

5452
// Number of pins defined in PinDescription array
5553
#define PINS_COUNT (26u)
@@ -191,6 +189,13 @@ static const uint8_t SCK = PIN_SPI_SCK ;
191189
#define MYSX_A1
192190
#define MYSX_A2
193191

192+
193+
#define MY_W5100_SPI_EN 4
194+
#define MY_SIGNING_ATSHA204_PIN 17
195+
#define MY_DEFAULT_ERR_LED_PIN LED_RED
196+
#define MY_DEFAULT_RX_LED_PIN LED_YELLOW
197+
#define MY_DEFAULT_TX_LED_PIN LED_GREEN
198+
194199
/*----------------------------------------------------------------------------
195200
* Arduino objects - C++ only
196201
*----------------------------------------------------------------------------*/
@@ -228,11 +233,11 @@ extern Uart Serial1;
228233
//
229234
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
230235
// pins are NOT connected to anything by default.
231-
#define SERIAL_PORT_USBVIRTUAL SerialUSB
232-
#define SERIAL_PORT_MONITOR Serial
236+
//#define SERIAL_PORT_USBVIRTUAL SerialUSB
237+
//#define SERIAL_PORT_MONITOR Serial
233238
// Serial has no physical pins broken out, so it's not listed as HARDWARE port
234-
#define SERIAL_PORT_HARDWARE Serial1
235-
#define SERIAL_PORT_HARDWARE_OPEN Serial1
239+
//#define SERIAL_PORT_HARDWARE Serial1
240+
//#define SERIAL_PORT_HARDWARE_OPEN Serial1
236241

237242
#endif /* _VARIANT_ARDUINO_ZERO_ */
238243

0 commit comments

Comments
 (0)