Mercurial > ~darius > hgwebdir.cgi > stm32temp
diff lcd.c @ 65:662e7f01c991
Convert \r\n to \n.
While I'm here remove teh readback test since it doesn't work.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 14 Apr 2013 14:26:46 +0930 |
parents | ff29436c0224 |
children |
line wrap: on
line diff
--- a/lcd.c Sun Apr 14 14:25:51 2013 +0930 +++ b/lcd.c Sun Apr 14 14:26:46 2013 +0930 @@ -140,10 +140,10 @@ id = lcd_readreg(0x00); if (id != 0x9325) { - printf("LCD ID doesn't match, expected 0x9325 got 0x%x\r\n", id); + printf("LCD ID doesn't match, expected 0x9325 got 0x%x\n", id); return; } - printf("LCD ID matches\r\n"); + printf("LCD ID matches\n"); lcd_writereg(0x00e3, 0x3008); /* Set internal timing (not documented) */ lcd_writereg(0x00e7, 0x0012); /* Set internal timing (not documented) */ @@ -219,18 +219,7 @@ lcd_writereg(0x003c, 0x0600); lcd_writereg(0x003d, 0x020b); - fputs("Testing\r\n", stdout); - lcd_startgram(0, 0); - lcd_writedata(0xa5a5); - lcd_writedata(0x5a5a); - lcd_startgram(0, 0); - if ((id = lcd_readdata(1)) != 0xa5a5) - printf("Expected 0xa5a5 got 0x%04x\r\n", id); - - if ((id = lcd_readdata(0)) != 0x5a5a) - printf("Expected 0x5a5a got 0x%04x\r\n", id); - - fputs("Filling\r\n", stdout); + fputs("Filling\n", stdout); /* Fill panel */ lcd_startgram(0, 0);