Creating a new driver for emWIN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating a new driver for emWIN

453 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dfcbkbq on Thu Feb 02 01:23:41 MST 2012
Hello! I try to use emWIN on my lpc1788 board with ATM0430d5-T LCD TFT display and SAMSUNG K4S561632J SDRAM. There is no available drivers for my board and LCD. So I am going to make it by myself. Is it enough to make following function:

LCD_X_DisplayDriver();
with commands
LCD_X_INITCONTROLLER
LCD_X_SETVRAMADDR_INFO
LCD_X_ON
LCD_X_OFF
LCD_X_SETLUTENTRY
LCD_X_SETORG

LCD_X_InitController()

LCD_GetBitsPerPixel()
LCD_GetBitsPerPixelEx()
LCD_GetNumColors()
LCD_GetNumColorsEx()
LCD_GetVXSize()
LCD_GetVXSizeEx()
LCD_GetVYSize()
LCD_GetVYSizeEx()
LCD_GetXMag()
LCD_GetXSize()
LCD_GetXSizeEx()
LCD_GetYMag()
CD_GetYSize()
LCD_GetYSizeEx()


LCD_SetDevFunc()
LCD_SetSizeEx()
LCD_SetVRAMAddrEx()
LCD_SetVSizeEx()

LCD_ControlCache()
?

Should I do something else?
Labels (1)
0 Kudos
2 Replies

308 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drs on Sat Feb 18 10:50:35 MST 2012
I suggest you start with the emWin example for the LPC1788 and EA QVGA here: http://www.lpcware.com/content/project/emwin-graphics-library

Then replace the LCD and SDRAM driver code in LCDConf.c with the code from the Keil sample project that works for your hardware. It will be obvious which of the functions you list need to be implemented to get it going on a different LCD.
0 Kudos

308 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dfcbkbq on Tue Feb 07 01:53:03 MST 2012
A sample project LCD\Lcd_GFT035A320240Y from code.bundle.lpc17xx.keil_ works on my board. It didn't configured for my resolution,  but it works. Does it mean that free lcd drivers for emWIN suit me? What should I do to make emWIN work on my board if they do?
0 Kudos