Skip to content

Instantly share code, notes, and snippets.

@an-roo
Created December 5, 2010 16:24
Show Gist options
  • Select an option

  • Save an-roo/729214 to your computer and use it in GitHub Desktop.

Select an option

Save an-roo/729214 to your computer and use it in GitHub Desktop.
#if defined(__AVR_ATmega324P__)
/* Onboard LED is connected to pin PB5 in Arduino NG, Diecimila, and Duemilanove */
#define LED_DDR DDRB
#define LED_PORT PORTB
#define LED_PIN PINB
#define LED PINB1
/* Ports for soft UART */
#ifdef SOFT_UART
#define UART_PORT PORTD
#define UART_PIN PIND
#define UART_DDR DDRD
#define UART_TX_BIT 1
#define UART_RX_BIT 0
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment