Writing custom characters to LCD display


Closed Thread
Results 1 to 40 of 60

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Tehran, Iran
    Posts
    28


    Did you find this post helpful? Yes | No

    Default

    hi

    thanks mister-e, here is direct link:

    PICMultiCalc:

    All you need to calculate PIC Timers, PWM, USART, EUSART, ADC, Comparator register value in few clicks!

    USART, EUSART, A/D and LCD custom character provide a code generation tool for Melabs PICBASIC PRO.

    http://www.mister-e.org/files/picmulticalc_v_1_3_1.zip

    with best regards

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Mostafa View Post
    hi
    thanks mister-e, here is direct link:
    PICMultiCalc:
    All you need to calculate PIC Timers, PWM, USART, EUSART, ADC, Comparator register value in few clicks!
    USART, EUSART, A/D and LCD custom character provide a code generation tool for Melabs PICBASIC PRO.
    http://www.mister-e.org/files/picmulticalc_v_1_3_1.zip
    with best regards
    What the.....????
    Gee...I wonder who wrote that program...

  3. #3
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile euuuhh, what??????

    Quote Originally Posted by skimask View Post
    What the.....????
    Gee...I wonder who wrote that program...
    see also:
    http://www.picbasic.co.uk/forum/show...s%22#post34133
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  4. #4
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Red face how about for 4x20 lcd?

    I am impressed with the amount of work that has been put into this thread already.
    I have used the custom character generator Darren Taylor posted and it works great!
    I would like to now place my custom characters on the line of my choice for my 4x20. As far as I know my Truly 4x20 lcd has 4 rows and 8 colums for custom characters.
    Can I simply add on to your custom character generator line with , 128, 192,148, or 212 to choose the start position?????
    thanks
    Padawan-78

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    ... I would like to now place my custom characters on the line of my choice for my 4x20. As far as I know my Truly 4x20 lcd has 4 rows and 8 colums for custom characters.
    The LCD only has 8 locations for custom characters, and those locations don't relate to any specific rows or columns.

    Once you've sent a custom character to the LCD, it can be used any number of times, anywhere on the screen.

    For instance, this line creates the Smiley Face in the LCD's CGRAM at location 4 ($60).

    Code:
    LCDOUT $FE,$60,$00,$0a,$0a,$00,$00,$11,$0e,$00  ; #4 Smiley Face
    and this will fill your display with smiley faces.
    Code:
    LoopCount  VAR BYTE
    
    FOR LoopCount = 1 to 80
        LCDOUT 4
    NEXT LoopCount
    Or this will do the same thing as the FOR/NEXT loop

    LCDOUT REP 4\80

    <hr>

    ... 128, 192,148, or 212 to choose the start position?????
    If you always wanted to start in the first column of each row, those would work.
    You can also add an "offset" to those numbers to specify the column.

    Code:
    Row1  CON 128
    Row2  CON 192
    Row3  CON 148
    Row4  CON 212
    
    LCDOUT $FE,$60,$00,$0a,$0a,$00,$00,$11,$0e,$00  ; #4 Smiley Face
    
    LCDOUT  $FE,Row3+10, 4  ; Put a smiley in the middle of Row 3
    HTH,
    DT

  6. #6
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Smile thanks!!!

    Darren,
    Thanks, I got it now. Keep up the good work!
    Padawan-78

  7. #7
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Talking my small contribution

    Hey everyone,
    I thought I would try contribute instead of just take from this great forum.
    Here are 2 symbols I came up with for the Holidays using Darren's Character generator.
    Both require 4x20 LCD of space.
    I also figured out that you can redefine 8 custom characters as many times as you want...in loops only. You just have to be careful about how you go back and forth between the loops.
    enjoy

    halloween:
    LCDOUT 254,64,8,17,3,7,15,15,29,29 ' Cust Char #0 PUMPKIN
    LCDOUT 254,72,12,31,31,14,31,31,27,27 ' Cust Char #1
    LCDOUT 254,80,2,17,24,28,30,30,23,23 ' Cust Char #2
    LCDOUT 254,88,29,30,14,7,7,19,8,0 ' Cust Char #3
    LCDOUT 254,96,31,21,21,0,10,31,31,0 ' Cust Char #4
    LCDOUT 254,104,23,15,14,28,28,25,2,0 ' Cust Char #5
    LCDOUT 254,112,8,16,10,6,1,1,6,8 ' Cust Char #6 PUMPKIN VINE

    lcdout 254, 1
    lcdout $FE,Row1+3, 6
    LCDOUT $FE,Row2+2, 0
    LCDOUT $FE,Row2+3, 1
    LCDOUT $FE,Row2+4, 2," Happy "
    LCDOUT $FE,Row3+2, 3
    LCDOUT $FE,Row3+3, 4
    LCDOUT $FE,Row3+4, 5," Halloween "
    pause 5000
    goto halloween

    christmas:
    LCDOUT 254,64,4,8,7,31,3,8,4,0 ' Cust Char #0 Christmas Star
    LCDOUT 254,72,14,27,17,0,17,27,14,14 ' Cust Char #1
    LCDOUT 254,80,4,2,28,31,24,2,4,0 ' Cust Char #2
    LCDOUT 254,88,4,4,4,21,21,4,14,14 ' Cust Char #3
    LCDOUT 254,96,14,14,14,4,4,4,21,21 ' Cust Char #4
    LCDOUT 254,104,21,4,4,4,4,4,0,0 ' Cust Char #5
    lcdout 254, 1
    lcdout $FE,Row1+3, 3
    LCDOUT $FE,Row2+2, 0
    LCDOUT $FE,Row2+3, 1
    LCDOUT $FE,Row2+4, 2," MERRY "
    LCDOUT $FE,Row3+3, 4," CHRISTMAS"
    LCDOUT $FE,Row4+3, 5
    pause 5000
    goto christmas
    Padawan-78

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  2. assembly in Pic
    By lerameur in forum Off Topic
    Replies: 11
    Last Post: - 1st May 2008, 20:06
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts