Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

lcd designer not work

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
kos19

Bascom Member



Joined: 22 Dec 2008
Posts: 16

slovenia.gif
PostPosted: Sat Jan 31, 2015 4:45 pm    Post subject: lcd designer not work Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sat Jan 31, 2015 7:19 pm    Post subject: replace x? Reply with quote

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
View user's profile Visit poster's website
snipsnip

Bascom Member



Joined: 10 Feb 2014
Posts: 66
Location: Melbourne

australia.gif
PostPosted: Sat Jan 31, 2015 9:37 pm    Post subject: Reply with quote

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
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 177
Location: Japan

japan.gif
PostPosted: Sun Feb 01, 2015 1:23 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
snipsnip

Bascom Member



Joined: 10 Feb 2014
Posts: 66
Location: Melbourne

australia.gif
PostPosted: Sun Feb 01, 2015 1:47 am    Post subject: Reply with quote

31 = 00011111 ' full row
32 = 00100000 'empty , Don't know why its not just "0"


Confused
Back to top
View user's profile
dl7sep

Bascom Member



Joined: 26 Feb 2006
Posts: 81

germany.gif
PostPosted: Sun Feb 01, 2015 11:27 am    Post subject: Reply with quote

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
View user's profile
kos19

Bascom Member



Joined: 22 Dec 2008
Posts: 16

slovenia.gif
PostPosted: Thu Mar 05, 2015 11:59 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum