diff firmware.original/lcd.h firmware/lcd.h 61,62c61,62 < #define LCD_RS_PORT PORTD /**< port for RS line */ < #define LCD_RS_PIN 3 /**< pin for RS line */ --- > #define LCD_RS_PORT PORTC /**< port for RS line */ > #define LCD_RS_PIN 1 /**< pin for RS line */ diff firmware.original/main.c firmware/main.c 43,44c43,44 < #define USBDDR DDRC < #define USB_CFG_IOPORT PORTC --- > #define USBDDR DDRD > #define USB_CFG_IOPORT PORTD 86c86 < DDRB |= _BV(1) | _BV(2); --- > DDRB = 0x3f; 98c98 < TCCR1A = _BV(COM1A1) | _BV(COM1A0) | _BV(COM1B1) | _BV(WGM10); --- > TCCR1A = _BV(COM1A1) | _BV(COM1B1) | _BV(WGM10); 101c101 < TIMSK &=( (~_BV(2)) & (~_BV(3)) & (~_BV(4)) & (~_BV(5))); --- > TIMSK1 &=( (~_BV(0)) & (~_BV(1)) & (~_BV(2)) & (~_BV(5))); 234c234,235 < DDRD = ~(_BV(2) | _BV(1) | _BV(0)); --- > DDRC = 0xff; > DDRD = 0xf1; 237c238 < DDRC = ~0; /* output SE0 for USB reset */ --- > DDRD |= USBMASK; /* output SE0 for USB reset */ 242c243 < DDRC = ~USBMASK; /* all outputs except USB data */ --- > DDRD &= ~USBMASK; /* all outputs except USB data */ 247,250c248,251 < DDRC &= ~_BV(5); /* input S1 */ < PORTC |= _BV(5); /* with pullup */ < DDRB &= ~_BV(0); /* input S2 */ < PORTB |= _BV(0); /* with pullup */ --- > //DDRC &= ~_BV(5); /* input S1 */ > //PORTC |= _BV(5); /* with pullup */ > //DDRB &= ~_BV(0); /* input S2 */ > //PORTB |= _BV(0); /* with pullup */ diff firmware.original/usbconfig.h firmware/usbconfig.h 22c22 < #define USB_CFG_IOPORTNAME C --- > #define USB_CFG_IOPORTNAME D 27c27 < #define USB_CFG_DMINUS_BIT 0 --- > #define USB_CFG_DMINUS_BIT 3 diff firmware.original/usbtiny.h firmware/usbtiny.h 13c13 < #define USBTINY_PORT C --- > #define USBTINY_PORT D 15c15 < #define USBTINY_DMINUS 0 --- > #define USBTINY_DMINUS 3