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:
@ -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
|
||||
|
Reference in New Issue
Block a user