diff -r old/firmware/lcd.c new/firmware/lcd.c 42,43c42,43 < #define lcd_e1_high() LCD_E_PORT |= _BV(LCD_E1_PIN); < #define lcd_e1_low() LCD_E_PORT &= ~_BV(LCD_E1_PIN); --- > //#define lcd_e1_high() LCD_E_PORT |= _BV(LCD_E1_PIN); > //#define lcd_e1_low() LCD_E_PORT &= ~_BV(LCD_E1_PIN); 91c91 < if(ctrl & LCD_CTRL_1) lcd_e1_high(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_high(); 96c96 < if(ctrl & LCD_CTRL_1) lcd_e1_low(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_low(); 151c151 < if(ctrl & LCD_CTRL_1) lcd_e1_high(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_high(); 155c155 < if(ctrl & LCD_CTRL_1) lcd_e1_low(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_low(); 160c160 < if(ctrl & LCD_CTRL_1) lcd_e1_high(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_high(); 164c164 < if(ctrl & LCD_CTRL_1) lcd_e1_low(); --- > // if(ctrl & LCD_CTRL_1) lcd_e1_low(); 265c265 < DDR(LCD_E_PORT) |= _BV(LCD_E1_PIN); /* seconds controller */ --- > // DDR(LCD_E_PORT) |= _BV(LCD_E1_PIN); /* seconds controller */ diff -r old/firmware/lcd.h new/firmware/lcd.h 67c67 < #define LCD_E1_PIN 4 /**< pin for Enable line 1 */ --- > //#define LCD_E1_PIN 4 /**< pin for Enable line 1 */ diff -r old/firmware/main.c new/firmware/main.c 197,198c197,200 < replyBuf[0] = ((PINC & _BV(5))?0:1) | < ((PINB & _BV(0))?0:2); --- > replyBuf[0] = ((PINB & _BV(0))?0:8) | > ((PINC & _BV(5))?0:1) | > ((PINC & _BV(4))?0:2) | > ((PINB & _BV(3))?0:4); 237c239 < DDRC = ~0; /* output SE0 for USB reset */ --- > DDRC = 0x0f; /* output SE0 for USB reset */ 242c244 < DDRC = ~USBMASK; /* all outputs except USB data */ --- > DDRC = (~USBMASK & 0x0f); /* all outputs except USB data */ 247,249c249 < DDRC &= ~_BV(5); /* input S1 */ < PORTC |= _BV(5); /* with pullup */ < DDRB &= ~_BV(0); /* input S2 */ --- > DDRB &= ~_BV(0); /* input S1 */ 250a251,256 > DDRC &= ~_BV(5); /* input S2 */ > PORTC |= _BV(5); /* with pullup */ > DDRC &= ~_BV(4); /* input S3 */ > PORTC |= _BV(4); /* with pullup */ > DDRB &= ~_BV(3); /* input S4 */ > PORTB |= _BV(3); /* with pullup */