Dummy needs LCD tutorial,


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...

  2. #2
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Forum

    Well, i got an answer quickly on this one, and found more infos in the archives for my level than on the other one.
    I saw more posts here since one week i'm interested in PICs.

    Maybe a bad guess ? But keep smiling !



    Quote Originally Posted by Melanie
    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    * * *
    Custom Characters tutorial:
    http://www.parallax.com/dl/docs/cols...1/col/nv32.pdf

    LCD Character Generator: (Freeware)
    http://www.parallax.com/dl/sw/lcdcc.zip

    * * *

    Writing custom characters to LCD display:
    http://www.picbasic.co.uk/forum/showthread.php?t=242


    Luciano

  4. #4
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Talking Bingo !

    Ciao Luciano,

    Grazie mille !

    That was exactly what i was looking for !
    This forum seems to be the right place for me... ;-)

    Thanks a million to all of you for your kindness.

    Quote Originally Posted by Luciano
    * * *
    Custom Characters tutorial:
    http://www.parallax.com/dl/docs/cols...1/col/nv32.pdf

    LCD Character Generator: (Freeware)
    http://www.parallax.com/dl/sw/lcdcc.zip

    * * *

    Writing custom characters to LCD display:
    http://www.picbasic.co.uk/forum/showthread.php?t=242


    Luciano

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi Darrell,

    I love the bar graph display. Can it be set up to do the following:

    1. A text line showing the current temperature in deg C with 0.1 deg resolution. (Temperature data from a thermistor via a PIC a/d data channel.)

    2. Several bar graph lines showing (a.) the current temp. and (b.) the temp. as recorded in the preceeding 30 second intervals; with as many bars as is practical.

    3. As a new data bar is entered the oldest bar drops off.

    Possible?
    Last edited by Dick Ivers; - 29th September 2005 at 00:00.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dick Ivers
    Hi Darrell,

    I love the bar graph display. Can it be set up to do the following:

    1. A text line showing the current temperature in deg C with 0.1 deg resolution. (Temperature data from a thermistor via a PIC a/d data channel.)

    2. Several bar graph lines showing (a.) the current temp. and (b.) the temp. as recorded in the preceeding 30 second intervals; with as many bars as is practical.

    3. As a new data bar is entered the oldest bar drops off.

    Possible?
    Absolutely Possible!

    You can have as many bars as you can fit on the screen. They can come and go anytime you please.

    Just remember that when you're finished with 1 particular BAR, call the BARgraph macro 1 more time with a 0 value, to clear the area that it used. It's more efficient than clearing the screen, and re-drawing everthing else. Looks better without the flicker too .
    <br>
    Glad you like it! Thanks!
    DT

  7. #7
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Porting Bargraph include to other Picbasic.

    Hi Darrell,

    I too like your include and already posted a question about it, but did not get any answer.

    I would like to use it with another Picbasic.

    In one line you have : Remainder = R2

    What is this R2 ?

    Do you know if your file has been ported to other versions of Picbasic ?

    Thanks,

    Quote Originally Posted by Darrel Taylor
    Absolutely Possible!

    You can have as many bars as you can fit on the screen. They can come and go anytime you please.

    Just remember that when you're finished with 1 particular BAR, call the BARgraph macro 1 more time with a 0 value, to clear the area that it used. It's more efficient than clearing the screen, and re-drawing everthing else. Looks better without the flicker too .
    <br>
    Glad you like it! Thanks!

  8. #8
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie
    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...
    Me as well had a smile on my face...


    I don't want to start yet another "heated debate",
    but to be fair,
    I'm sure if Patrick had provided a bit more of information about his Project on "the other" Forum
    he would have got some better response.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you can't imagine MY smile... period!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  10. #10
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Sorry !

    Sorry if i bothered someone, it was not my intention... :-(
    My apologies if i did !
    Some of you are on both forums and answered me on both.

    Anyway, i will survey both forums and post on both. ANY help is welcome.

    Patrick,

    Quote Originally Posted by NavMicroSystems
    Me as well had a smile on my face...
    I don't want to start yet another "heated debate",
    but to be fair,
    I'm sure if Patrick had provided a bit more of information about his Project on "the other" Forum
    he would have got some better response.

  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by TK5EP
    Sorry if i bothered someone, it was not my intention... :-(
    Oh no you didn't. You just raise an interesting fact wich make some people here laugh and some other cry. No harm at all.

    Quote Originally Posted by Melanie
    You see, there are reasons why you should be using the MeLabs compiler... Darrel's magic code is one of them...
    only one of them
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default

    already posted a question about it, but did not get any answer
    Sorry about that! &nbsp; I was purposely ignoring it.

    Some other guy came in here and said that "The Other compiler" did everything that PicBasic Pro didn't. &nbsp; So, I didn't think you needed it.

    "I picked a bad day to stop sniffing glue" - Airplane.

    But seriously folks, &nbsp;R2 is a PicBasic Pro system variable that holds the modulas remainder after a 31x15 divide with the DIV32 command. &nbsp;I don't use "The Other compiler", so I really don't know how you would do that.
    <br>
    DT

  13. #13
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Different way to store CGRAM ?

    Hi again !

    I found a small example of a bargraph that i can make working with the demo version. I can't include Darrel's include...

    It works OK, and i could modifiy it to my needs, i understood almost all the code except the method used to store in the CGRAM :
    Lcdout $FE,64,0,0,0,0,0,0,0,0 ' blank
    Lcdout $0,$10,$10,$10,$10,$10,$10,$0 ' |
    Lcdout $0,$14,$14,$14,$14,$14,$14,$0 ' ||
    Lcdout $0,$15,$15,$15,$15,$15,$15,$0 ' |||

    Following the different other codes i've found, i would have done it this way :
    lcdout $FE,$40,$00,$00,$00,$00,$00,$00,$00,$00
    lcdout $FE,$48,$10,$10,$10,$10,$10,$10,$10,$00
    lcdout $FE,$50,$14,$14,$14,$14,$14,$14,$14,$00
    lcdout $FE,$58,$15,$15,$15,$15,$15,$15,$15,$00

    or for last line lcdout $FE,$58,REP $15\7,$00

    How is the 1st method working ??

    BTW what does LCDOUT $FE,$CE make ?

    also LCDOUT $FE,$80+1 would move the cursor to first line second character ?

    FYI, i changed from the "other" compiler to MELabs one.... ;-)

    Greetings,

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


    Did you find this post helpful? Yes | No

    Default

    CGRAM is just a 64 byte contiguous block of RAM. Once you set the address to write to, you can just continue sending bytes untill your done, or you reach the end of RAM. So, your first group of LCDOUT's will set 4 custom chars, starting at location 0.

    The second group accomplishes the same thing, but also sends the address for the character each time. As long as your not going to be changing things, the first group uses less code and execution time, but the second group is easier to cut&paste into other programs, since the address goes with it. &nbsp; "6 of 1, half dozen of the other".

    $FE,$CE will move the cursor to the 15th character on the second line.

    and, correct on the $FE,$80+1
    <br>
    Last edited by Darrel Taylor; - 1st October 2005 at 05:59.
    DT

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14:44

Members who have read this thread : 0

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