aboutsummaryrefslogtreecommitdiff
path: root/variants
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-09-16 14:32:25 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-09-16 14:32:25 -0400
commit8e0f035c9b0755e443cd0a3834fad855d367c545 (patch)
tree505c47846fec60434ddb7a3fdbf989a51895f4eb /variants
parent7166603c8950fa6512a9a322ae770a1ada2598ae (diff)
added automatic one-shot TX and RX LED control for sketch USB
Diffstat (limited to 'variants')
-rw-r--r--variants/leonardo/pins_arduino.h5
1 files changed, 5 insertions, 0 deletions
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 <avr/pgmspace.h>
#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