Skip to main content
jeu
Associate
August 18, 2014
Question

LCD_DisplayStringLine(Line5, ''Hello'');

  • August 18, 2014
  • 5 replies
  • 1020 views
Posted on August 18, 2014 at 15:44

Where can I find the definition of LINE(5)? I would appreciate for it. Jai

Please note that:

&sharpdefine Line5 LCD_LINE_5  at stm32_eval.h

&sharpdefine LCD_LINE_5 LINE(5) at stm3210c_eval_lcd.h

#lmgtfy #stm32f10c-eval
This topic has been closed for replies.

5 replies

Andrew Neil
Super User
August 18, 2014
Posted on August 18, 2014 at 16:30

#define Line5 LCD_LINE_5  at stm32_eval.h

 

#define LCD_LINE_5 LINE(5) at stm3210c_eval_lcd.h

If you can work back through those two defines, why can't you take the next step back to the definition of LINE ?

What toolset are you using -doesn't it have -'go to definition'?

Or just grep ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
jeu
jeuAuthor
Associate
August 19, 2014
Posted on August 19, 2014 at 03:19

Hello Neil,

CoIDE is used. When LINE(5), for example, is not searched any further. It looks like a micro that determines (x,y) cordinates. Unfortunately, I cannot find out the data sheet of 3.2'' TFT LCD used in STM32107C_EVAL kit.

Jai

Tesla DeLorean
Guru
August 19, 2014
Posted on August 19, 2014 at 06:17

2.4''

http://wenku.baidu.com/view/9199760dba1aa8114431d94b.html

3.2''

http://gamma.spb.ru/media/pdf/tft-displei/AM-240320D4TOQW-T00H%28R%29.pdf

ILI9320

http://www.densitron.com/uploadedFiles/Displays/Support/ILI9320DS_V0.51.pdf

STM32F10x_StdPeriph_Lib_V3.5.0\Utilities\STM32_EVAL\Common\fonts.h

#define LINE(x) ((x) * (((sFONT *)LCD_GetFont())->Height))

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
August 19, 2014
Posted on August 19, 2014 at 09:08

''CoIDE is used. When LINE(5), for example, is not searched any further''

You need to raise a bug report with CooCox, then.

''It looks like a micro''

*m

a

cro

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
jeu
jeuAuthor
Associate
August 20, 2014
Posted on August 20, 2014 at 10:22

Hello Clive1,

Thank you very much for PDF files and LIVE macro. Now I see the printout on the screen. However, each line printout is flipped around x axis (right to left, mirror image). I wonder if there is another setting along with this.

Thanks again.

Jai