1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

added automatic one-shot TX and RX LED control for sketch USB

This commit is contained in:
Zach Eveland
2011-09-16 14:32:25 -04:00
parent 6b7d24edb0
commit 667da698d7
2 changed files with 31 additions and 28 deletions

View File

@ -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