Jump to content
ELFORUM - Forumul Electronistilor
Sign in to follow this  
nickrvl

Caractere mari pe LCD

Recommended Posts

Exista vre-o posibilitate de a afisa pe un LCD 4X16 un cuvint pe doua rinduri pentru a se vedea mai clar, sa luam exemplu cuvintul "Stop", sper ca m-am exprimat corect, deci in loc sa fie afisat "normal" pe un rind sa fie impartit in doua si afisat pe doua rinduri, jumatatea superioara pe un rind superior jumatatea inferioara pe un rind inferior.....

Share this post


Link to post
Share on other sites

Poţi, doar că eşti limitat la 8 caractere custom. Nu-ţi rămîne decît să-ţi faci un set de figuri cu care să-ţi faci apoi textul cel mare. Cam aşa ceva, vrei, nu?

 

 

Posted Image

Share this post


Link to post
Share on other sites

Poţi, doar că eşti limitat la 8 caractere custom. Nu-ţi rămîne decît să-ţi faci un set de figuri cu care să-ţi faci apoi textul cel mare. Cam aşa ceva, vrei, nu?...................................................................

Da, asa ceva as vrea, speram sa fie vre-o "comanda" pentru lcd pentru a nu fi nevoit sa creez caractere....

Share this post


Link to post
Share on other sites

Poţi, doar că eşti limitat la 8 caractere custom. Nu-ţi rămîne decît să-ţi faci un set de figuri cu care să-ţi faci apoi textul cel mare. Cam aşa ceva, vrei, nu?

 

 

Posted Image

Salutare...si eu as fi interesat insa asa este est limitata la 8 caractere custom, am incercat si eu sa fac, dar nu am reusit.

Dar cum se fac aceste seturi?

Un link ceva?

Multumesc.

Share this post


Link to post
Share on other sites

E descris în datasheetul LCD-ului, dar cred că se găsesc şi funcţii gata făcute. Caută pe google după "lcd 2x16 custom character".

Share this post


Link to post
Share on other sites

......................Salutare...si eu as fi interesat insa asa este est limitata la 8 caractere custom, am incercat si eu sa fac, dar nu am reusit.Dar cum se fac aceste seturi?Un link ceva? Multumesc.

In Bascom e chiar simplu, se foloseste LCD designer, se "creaza" forma si se da Ok:post-9441-139829601462_thumb.jpgpost-9441-139829601476_thumb.jpg

Share this post


Link to post
Share on other sites

Da, aia stiam si eu, dar eu doream caractere mari, pe doua ramduri.......

Share this post


Link to post
Share on other sites

Caracterele ţi le faci. În poze pe care am pus-o (din gugăl) se văd clar caracterele custom: un triunghi dreptunghic rotit în multipli de 90 de grade şi o căsuţă plină pe jumătate (sus şi jos). În total sînt 6 caractere.

Share this post


Link to post
Share on other sites

Da, aia stiam si eu, dar eu doream caractere mari, pe doua ramduri.......

Cifre mari pe LCD 20*4. Poate te ajuta ca idee:
'----------------------------------------------------------' Programm initialisieren'----------------------------------------------------------$regfile = "m8def.dat"                                      ' ATmega8-Deklarationen$crystal = 3686400                                          ' Taktfrequenz: 3,6864 MHzConfig Lcd = 20 * 4'----------------------------------------------------------' LCD-Zeichen Chr(0)'----------------------------------------------------------' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000' 1   ' 00001' 3   ' 00011' 7   ' 00111' 15  ' 01111Deflcdchar 0 , 0 , 0 , 0 , 0 , 1 , 3 , 7 , 15'----------------------------------------------------------' LCD-Zeichen Chr(1)'----------------------------------------------------------' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000' 31  ' 11111' 31  ' 11111' 31  ' 11111' 31  ' 11111Deflcdchar 1 , 0 , 0 , 0 , 0 , 31 , 31 , 31 , 31'----------------------------------------------------------' LCD-Zeichen Chr(2)'----------------------------------------------------------' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000' 16  ' 10000' 24  ' 11000' 28  ' 11100' 30  ' 11110Deflcdchar 2 , 0 , 0 , 0 , 0 , 16 , 24 , 28 , 30'----------------------------------------------------------' LCD-Zeichen Chr(3)'----------------------------------------------------------' 31  ' 11111' 31  ' 11111' 31  ' 11111' 31  ' 11111' 30  ' 11110' 28  ' 11100' 24  ' 11000' 16  ' 10000Deflcdchar 3 , 31 , 31 , 31 , 31 , 30 , 28 , 24 , 16'----------------------------------------------------------' LCD-Zeichen Chr(4)'----------------------------------------------------------' 16  ' 10000' 24  ' 11000' 28  ' 11100' 30  ' 11110' 31  ' 11111' 31  ' 11111' 31  ' 11111' 31  ' 11111Deflcdchar 4 , 16 , 24 , 28 , 30 , 31 , 31 , 31 , 31'----------------------------------------------------------' LCD-Zeichen Chr(5)'----------------------------------------------------------' 15  ' 01111' 7   ' 00111' 3   ' 00011' 1   ' 00001' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000Deflcdchar 5 , 15 , 7 , 3 , 1 , 0 , 0 , 0 , 0'----------------------------------------------------------' LCD-Zeichen Chr(6)'----------------------------------------------------------' 31  ' 11111' 31  ' 11111' 31  ' 11111' 31  ' 11111' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000Deflcdchar 6 , 31 , 31 , 31 , 31 , 0 , 0 , 0 , 0'----------------------------------------------------------' LCD-Zeichen Chr(7)'----------------------------------------------------------' 30  ' 11110' 28  ' 11100' 24  ' 11000' 16  ' 10000' 0   ' 00000' 0   ' 00000' 0   ' 00000' 0   ' 00000Deflcdchar 7 , 30 , 28 , 24 , 16 , 0 , 0 , 0 , 0Cls                                                         ' CLS nach dem DefLCDChar ist wichtig !! (LCD-Controller wird in den Datenmodus zurückgesetzt)Declare Sub Lcdbig                                          ' Funktion zum Schreiben der großen Zahlen deklarierenDim Lcdbigspalte As Byte , Lcdbigzahl As Byte               ' Variablen für LCDBig (benötigt weniger Ressourcen wie eine Parameterübergabe an LCDBig)'----------------------------------------------------------' Hauptschleife'----------------------------------------------------------Do  ' Beispielanzeige Uhrzeit:  Cls  Lcdbigspalte = 2 : Lcdbigzahl = 2 : Lcdbig  Lcdbigspalte = 6 : Lcdbigzahl = 3 : Lcdbig  Lcdbigspalte = 12 : Lcdbigzahl = 1 : Lcdbig  Lcdbigspalte = 16 : Lcdbigzahl = 5 : Lcdbig  Locate 2 , 10 : Lcd Chr(111)  Locate 3 , 10 : Lcd Chr(111)  Wait 1  ' Beispielanzeige LCD-Helligkeit:  Cls  Locate 2 , 1 : Lcd "Test"  Locate 3 , 1 : Lcd "cifre mari:"  Lcdbigspalte = 12 : Lcdbigzahl = 9 : Lcdbig  Lcdbigspalte = 15 : Lcdbigzahl = 7 : Lcdbig  Lcdbigspalte = 18 : Lcdbigzahl = 3 : Lcdbig  Wait 1Loop'----------------------------------------------------------' LCDBig: Funktion zum Schreiben der Zahlen zum LCD'----------------------------------------------------------Sub Lcdbig  ' Zeile 1  Locate 1 , Lcdbigspalte  Select Case Lcdbigzahl    Case 0 : Lcd Chr(0) ; Chr(1) ; Chr(2)    Case 1 : Lcd Chr(0) ; Chr(1) ; Chr(32)    Case 2 : Lcd Chr(0) ; Chr(1) ; Chr(2)    Case 3 : Lcd Chr(0) ; Chr(1) ; Chr(2)    Case 4 : Lcd Chr(1) ; Chr(32) ; Chr(32)    Case 5 : Lcd Chr(1) ; Chr(1) ; Chr(1)    Case 6 : Lcd Chr(0) ; Chr(1) ; Chr(2)    Case 7 : Lcd Chr(1) ; Chr(1) ; Chr(1)    Case 8 : Lcd Chr(0) ; Chr(1) ; Chr(2)    Case 9 : Lcd Chr(0) ; Chr(1) ; Chr(2)  End Select  ' Zeile 2  Locate 2 , Lcdbigspalte  Select Case Lcdbigzahl    Case 0 : Lcd Chr(255) ; Chr(32) ; Chr(255)    Case 1 : Lcd Chr(32) ; Chr(255) ; Chr(32)    Case 2 : Lcd Chr(0) ; Chr(1) ; Chr(3)    Case 3 : Lcd Chr(32) ; Chr(0) ; Chr(3)    Case 4 : Lcd Chr(255) ; Chr(1) ; Chr(255)    Case 5 : Lcd Chr(255) ; Chr(1) ; Chr(2)    Case 6 : Lcd Chr(255) ; Chr(1) ; Chr(2)    Case 7 : Lcd Chr(32) ; Chr(0) ; Chr(3)    Case 8 : Lcd Chr(255) ; Chr(1) ; Chr(255)    Case 9 : Lcd Chr(255) ; Chr(1) ; Chr(255)  End Select  ' Zeile 3  Locate 3 , Lcdbigspalte  Select Case Lcdbigzahl    Case 0 : Lcd Chr(255) ; Chr(32) ; Chr(255)    Case 1 : Lcd Chr(32) ; Chr(255) ; Chr(32)    Case 2 : Lcd Chr(255) ; Chr(32) ; Chr(32)    Case 3 : Lcd Chr(32) ; Chr(5) ; Chr(4)    Case 4 : Lcd Chr(32) ; Chr(32) ; Chr(255)    Case 5 : Lcd Chr(32) ; Chr(32) ; Chr(255)    Case 6 : Lcd Chr(255) ; Chr(32) ; Chr(255)    Case 7 : Lcd Chr(32) ; Chr(255) ; Chr(32)    Case 8 : Lcd Chr(255) ; Chr(32) ; Chr(255)    Case 9 : Lcd Chr(32) ; Chr(32) ; Chr(255)  End Select  ' Zeile 4  Locate 4 , Lcdbigspalte  Select Case Lcdbigzahl    Case 0 : Lcd Chr(5) ; Chr(6) ; Chr(7)    Case 1 : Lcd Chr(6) ; Chr(6) ; Chr(6)    Case 2 : Lcd Chr(6) ; Chr(6) ; Chr(6)    Case 3 : Lcd Chr(5) ; Chr(6) ; Chr(7)    Case 4 : Lcd Chr(32) ; Chr(32) ; Chr(6)    Case 5 : Lcd Chr(6) ; Chr(6) ; Chr(7)    Case 6 : Lcd Chr(5) ; Chr(6) ; Chr(7)    Case 7 : Lcd Chr(32) ; Chr(6) ; Chr(32)    Case 8 : Lcd Chr(5) ; Chr(6) ; Chr(7)    Case 9 : Lcd Chr(5) ; Chr(6) ; Chr(7)  End SelectEnd Sub

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.