Thursday, June 29th 2017, 12:56pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Pixel3

Beginner

Date of registration: Jun 11th 2012

Posts: 11

1

Wednesday, June 13th 2012, 9:29pm

Emwin 5.12 + GUIDrv_Template+ SSD1289

Hi

i m new to emwin and i m trying to drive my lcd with emwin but have a problem





im using keil mdk 4.53+emwin5.12 and my lcd controller is SSD1289 .


I did this works according to instructions of manual:

1 - I made "LCDConf_CompactColor16.h" file in my project directory

2 - added configurations to "LCDConf_CompactColor16.h" :

3 - added "#define LCD_USE_COMPACT_COLOR_16" to LCDConf.h

4 - and wrote " GUI_DEVICE_CreateAndLink(GUIDRV_COMPACT_COLOR_16, // Display driver

GUICC_M565, // Color conversion

0, 0);"


in LCD_X_Config Function ;

when i compile the error "LCDConf.c(234): error: #20: identifier "GUIDRV_COMPACT_COLOR_16" is undefined" appears;

please help me to solove problem :?:

thanks

This post has been edited 1 times, last edit by "Pixel3" (Jun 19th 2012, 9:17pm)


SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

2

Thursday, June 14th 2012, 12:37pm

Hello Pixel,

You need to add the following line to the LCDConf.c:

#include "GUIDRV_CompactColor_16.h"

Could you please tell me if this information is a help for you? Thank you in advance.

Best regards,
Adrian

Pixel3

Beginner

Date of registration: Jun 11th 2012

Posts: 11

3

Thursday, June 14th 2012, 3:15pm

Hi Adrian

The header file "GUIDRV_CompactColor_16.h" dosnt exict in my "Emwin\Include\" folder
Of course I found that My Keil Emwin folder , just consist of Runtime Configurable Drivers and there is no Compile time configurable driver header file ,
I searched the word "GUIDRV_COMPACT_COLOR_16" in all of files in "Emwin\Include\" folder and nothing founded !!!
Is it possible that keil just support new Runtime Configurable Drivers ???????

Thanks for your help

SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

4

Friday, June 15th 2012, 9:47am

Hello Pixel,

Please understand, that we have to ask you to direct your support question directly to KEIL support <support.intl@keil.com>.
We have an agreement with KEIL, that includes their right to provide our emWin software as library and their obligation to support their customers. They have not paid us to support their customers.
However we can offer a support contract or the sources of our software which entitles you to receive direct support from SEGGER. Is this of interest for you?

Best regards,
Adrian

Pixel3

Beginner

Date of registration: Jun 11th 2012

Posts: 11

5

Saturday, June 16th 2012, 5:47pm

Thank you Adrian

I asked keil and they said that they cant support compile time drivers ;

I have to write a new driver for my device

Pixel3

Beginner

Date of registration: Jun 11th 2012

Posts: 11

6

Tuesday, June 19th 2012, 9:12pm

GUIDrv_Template

Hello

Im trying to drive my ssd1289 with GUIDrv_template, I did this works :

1 - Copy GUIDRV_Template.c from Sample Folder to my project root and add this file to my project
2 - Add #include <GUIDRV_Template.h> to LCDConf.h file
3 - Edit LCD_X_Config() functions in this way:
GUI_DEVICE_CreateAndLink(GUIDRV_TEMPLATE, GUICC_M565, 0, 0);
4 - Add some code in LCD_Template.c :
in _SetPixelIndex() , After // Write into hardware ... Adapt to your system , I added lcd write pixel commands
5 - add codes of lcd initializing to LCD_X_Init()

Now my lcd become init but no gui function(eg Gui_Clear or GuiFillRect work) ,
Please tell me how to solve the problem

Thank you

SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

7

Thursday, June 21st 2012, 9:56am

Hello Pixel,

Sorry for the delay. I talked to my colleague and learned that it is possible to use the GUIDRV_CompactColor_16 with the emWin library provided by KEIL. If you are willing to purchase GUIDRV_CompactColor_16, please send an e-mail to sales@segger.com.

If you prefer writing a custom driver for the Solomon SSD1289, please follow the steps described in the emWin documentation (29.7.20 "GUIDRV_Template").

If you have any further questions, please let me know.

Best regards,
Adrian

Pixel3

Beginner

Date of registration: Jun 11th 2012

Posts: 11

8

Friday, June 22nd 2012, 10:41am

Hello Adrian

I could drive my lcd with GUI_Drv_Template , now i am learning emwin so low speed is not so important for me .

thank you for your kind cooperation