From 8e0f035c9b0755e443cd0a3834fad855d367c545 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Fri, 16 Sep 2011 14:32:25 -0400 Subject: added automatic one-shot TX and RX LED control for sketch USB --- variants/leonardo/pins_arduino.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'variants') diff --git a/variants/leonardo/pins_arduino.h b/variants/leonardo/pins_arduino.h index 65ab5e2..7fb85b4 100644 --- a/variants/leonardo/pins_arduino.h +++ b/variants/leonardo/pins_arduino.h @@ -28,6 +28,11 @@ #include #define ARDUINO_MODEL_USB_PID 0x0034 +#define TX_RX_LED_INIT DDRE |= (1<<6), DDRB |= (1<<0) +#define TXLED0 PORTE |= (1<<6) +#define TXLED1 PORTE &= ~(1<<6) +#define RXLED0 PORTB |= (1<<0) +#define RXLED1 PORTB &= ~(1<<0) // Map SPI port to 'new' pins D14..D17 // D14 PB0 RXLED,SS/PCINT0 -- cgit v1.2.3-18-g5258