A lib for accessing ST7626 based lcds. It provides a set_pixel function. It is only tested with one display.
Diff: lcd.c
- Revision:
- 2:04fb8af3ecb0
- Parent:
- 1:ae0b4880e9db
- Child:
- 3:5b7d04c36d1a
--- a/lcd.c Sat Jan 08 19:17:57 2011 +0000 +++ b/lcd.c Sat Jan 08 22:28:13 2011 +0000 @@ -17,9 +17,7 @@ ////////////////////////////////////////////////////////////////////////// void LoadPaint(void) { Write(COMMAND, 0x31); // Ext = 1 - Write(COMMAND, 0x20); // Palette FRC1 Setup - Write(DATA, 0x00); // RGB Level0 Setup Write(DATA, 0x02); // RGB Level1 Setup Write(DATA, 0x04); // RGB Level2 Setup @@ -163,7 +161,7 @@ } -void lcd_putpixel(int16_t color, int x, int y) { +void lcd_putpixel( int x, int y, int16_t color { Write(COMMAND, 0x30); // Ext = 0 Write(COMMAND, 0x15); // Column address set Write(DATA, x); // From column address 0 to 97