added pause functionality to snake

This commit is contained in:
2014-12-30 00:52:56 +01:00
parent d96c76f054
commit 36fd117508
10 changed files with 24 additions and 7 deletions
+3 -1
View File
@@ -289,7 +289,9 @@ void _lcd_write_byte(uint8_t bb)
/** Wait until the device is ready */
void _lcd_wait_bf()
{
while(lcd_read_bf_addr() & _BV(7));
uint8_t d = 0;
while(d++ < 120 && lcd_read_bf_addr() & _BV(7))
_delay_us(1);
}