Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default font and bitmap tool

    The attached program fastLCD.zip will help you with text, as well as graphics. It will let you create characters, and it will create hex for them.

    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Thank You !

    Nice program, but I use already Excel (bin2hex) for those big characters...Unfortunately, I need to understand the codes You and HJota propose and modify all my code; the procedures for define and display the characters are different...Per aspera ad astra ...

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default First step !

    I succeded to display "23.56" ! it's a step, don't ?!
    Now, assuming that I succed to write the code for reading DS18B20, how display temperature instead "23.56" ?
    It's correct so : " lookup i, [temperature DIG 3, temperature DIG 2, temperature DIG 1], j" or how ? Thanks !
    Attached Images Attached Images  
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    How about changing from this:
    Code:
    for i=0 to 4
    lookup i,["23.56"],j
    lcdstr(i)=j
    next i
    to something like this:
    Code:
    lcdstr(4) = 48 + temperature dig 3
    lcdstr(3) = 48 + temperature dig 2
    lcdstr(2) = "."
    lcdstr(1) = 48 + temperature dig 1
    lcdstr(0) = 48 + temperature dig 0
    You would have to do something when your temperature goes to single digits though.

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    What I put here ?
    Code:
    lcdstr(4) = 48 + temperature dig 3
    lcdstr(3) = 48 + temperature dig 2
    lcdstr(2) = "."
    lcdstr(1) = 48 + temperature dig 1
    lcdstr(0) = 48 + temperature dig 0
    
    Tc=2
    for i=0 to 4
    lookup i,["??????"],j
    lcdstr(i)=j
    next i
    nC=5

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by fratello View Post
    What I put here ?
    Code:
    lcdstr(4) = 48 + temperature dig 3
    lcdstr(3) = 48 + temperature dig 2
    lcdstr(2) = "."
    lcdstr(1) = 48 + temperature dig 1
    lcdstr(0) = 48 + temperature dig 0
    
    Tc=2
    for i=0 to 4
    lookup i,["??????"],j
    lcdstr(i)=j
    next i
    nC=5
    remove the for i = loop. The code above will load the values in the lcdstr string.

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default And the results are...

    like in picture attached. The code works great, with one DS18B20; next project is, of course , termo with two zone, with thermostat, with clock, etc.,....
    THANK YOU ALL !
    Attached Images Attached Images  
    Attached Files Attached Files

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 02:43
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30

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