View previous topic :: View next topic |
Author |
Message |
kos19
Joined: 22 Dec 2008 Posts: 20
|
Posted: Sat Jan 31, 2015 4:45 pm Post subject: lcd designer not work |
|
|
Hello all.
After long time I use LCD DESIGNER - Deflcdchar [x] , 32 , 32 , 4 , 4 , 4 , 4 , 4 , 32 ' replace [x] with number (0-7)
After compile and program chip, on display was strange character. I try a few times, but result was always wrong.
All other text on lcd was OK.
Is this bug or something else?
(BASCOM-AVR version : 2.0.7.7 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sat Jan 31, 2015 7:19 pm Post subject: replace x? |
|
|
Did you replace the x with the charnumber you will be using?
I did a search on deflcdchar and found a full list of working examples. You must config the right lcd etc.
Have
Ben Zijlstra |
|
Back to top |
|
|
snipsnip
Joined: 10 Feb 2014 Posts: 72 Location: Melbourne
|
Posted: Sat Jan 31, 2015 9:37 pm Post subject: |
|
|
Quote: | It is important that a CLS follows the DEFLCDCHAR statement(s).
So make sure you use the DEFLCDCHAR before your CLS statement.
|
From the help... pretty sure this is the problem. |
|
Back to top |
|
|
O-Family
Joined: 23 May 2010 Posts: 320 Location: Japan
|
Posted: Sun Feb 01, 2015 1:23 am Post subject: |
|
|
Does your LCD have the number of the horizontal dots more than 5 dots?
If normal 5 dot type, the value of 32 is funny.
In your statement, display is now below.
Code: |
Deflcdchar 0 , 32 , 32 , 4 , 4 , 4 , 4 , 4 , 32
Locate 1 , 1
Lcd Chr(0)
|
|
|
Back to top |
|
|
snipsnip
Joined: 10 Feb 2014 Posts: 72 Location: Melbourne
|
Posted: Sun Feb 01, 2015 1:47 am Post subject: |
|
|
31 = 00011111 ' full row
32 = 00100000 'empty , Don't know why its not just "0"
|
|
Back to top |
|
|
dl7sep
Joined: 26 Feb 2006 Posts: 81
|
Posted: Sun Feb 01, 2015 11:27 am Post subject: |
|
|
31 =Full = normaly, you have only 5 dots
dot 0 = 1
dot 1 = 2
dot 3 = 4
dot 4 = 8
dot 5 = 16
1+2+4+8+16 =31
32 = Nothing, you have only 5 dots!
Regards
Josef |
|
Back to top |
|
|
kos19
Joined: 22 Dec 2008 Posts: 20
|
Posted: Thu Mar 05, 2015 11:59 am Post subject: |
|
|
snipsnip wrote: | Quote: | It is important that a CLS follows the DEFLCDCHAR statement(s).
So make sure you use the DEFLCDCHAR before your CLS statement.
|
From the help... pretty sure this is the problem. |
This was first problem.
The second was INITLCD. It should be used before DEFLCDCHAR statement(s).
Thanks for help. |
|
Back to top |
|
|
|