Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Post

    By, "my program" i meant a prog I wrote in VB.net for converting BMP pictures to PBP DATA code, so the lines wouldn,t get longer than 250 characters.

    I am sorry, it is late, and it is hard to explain the problem. I have attached my PBP code. The data I want to use as picture is declared in the very start of the program, and it is slitted, so the lines are < 250. After the initialization of the display I call the LCD_SHOWIMAGE sub, this happens at line 95. The LCD_SHOWLCD is running a loop 504 times, each time advancing to the next DATA byte, to fill the entire display matrix with data. I am using a filled with black pixels image to make the debugging easier. I have attached a photo of the display, when my program has been run. The focusing isn't good, but notice the white lines. There are 8 of them, equal to the number DATA strings in the program.
    Attached Files Attached Files
    Regards
    Denis Tcherniak

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russian View Post
    By, "my program" i meant a prog I wrote in VB.net for converting BMP pictures to PBP DATA code, so the lines wouldn,t get longer than 250 characters. I am sorry, it is late, and it is hard to explain the problem. I have attached my PBP code.
    Look at the very top of this webpage, roughly 3 lines down, left side of the screen, and tell me what you see.

  3. #3
    Join Date
    Aug 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Post

    MELabs PICBASIC forums? Are you writing this because I mentioned my .net program? I have not asked for help with .net. I am trying to get help with some PIC BASIC code I wrote. I mentioned .net just to explain the inconvenience we had before about me saying "my own program".
    Regards
    Denis Tcherniak

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russian View Post
    MELabs PICBASIC forums? Are you writing this because I mentioned my .net program? I have not asked for help with .net. I am trying to get help with some PIC BASIC code I wrote. I mentioned .net just to explain the inconvenience we had before about me saying "my own program".
    Well, good luck trying to get these lines:

    DEVICE 18F458
    XTAL = 4
    @CONFIG_REQ
    DECLARE RSOUT_MODE INVERTED , TRUE
    .............
    DECLARE SERIAL_BAUD 9600

    DIM I AS BYTE
    .................
    DIM E_DATA AS BYTE

    DELAYMS 50
    SHOUT LCD_SDA , LCD_CLK , MSBFIRST, [ $21,$A7,$20 ]
    VALIN = COUNTER PORTE.2 ,100
    STR LCDSTR = "Freq:",0:GOSUB LCD_HOME:GOSUB LCD_SENDSTRING
    STR LCDSTR = STR$(DEC VALIN):GOSUB LCD_SENDSTRING
    STR LCDSTR = "KHz:",0
    RSOUT DEC VALIN,$D,$A
    RSOUT "MEMORY FULL"
    DELAYMS 20
    SHOUT LCD_SDA , LCD_CLK , MSBFIRST, [ LCD_DATA ]
    SHOUT LCD_SDA , LCD_CLK , MSBFIRST, [ LCD_DATA ]
    LCD_DATA=CREAD FONT1+J+I
    SHOUT LCD_SDA , LCD_CLK , MSBFIRST, [ FONTCACHE[0],FONTCACHE[1],FONTCACHE[2],FONTCACHE[3],FONTCACHE[4],FONTCACHE[5] ]
    RSOUT "BAR", DEC I2,":", DEC LCD_DATA, "PLOT:",DEC
    RSOUT "0"
    EWRITE CUR_ADR,[E_DATA]

    CData $00,$00,$00,$00,$00,$00 'Graphic character 0
    ...............
    CData $00,$08,$04,$08,$04,$00 '126 ~ - 7E

    using the compiler that's listed at the top of this webpage, roughly 3rd line down, at the left of the screen.
    Last edited by skimask; - 11th May 2007 at 23:34.

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


    Did you find this post helpful? Yes | No

    Default

    What Skimask try to say in it's own words ... this is Melabs PICBASIC forum and not Crownhill PROTON (PDS or else) forum.

    PROTON Picbasic forum is located
    www.picbasic.org/forum
    Last edited by mister_e; - 11th May 2007 at 23:39.
    Steve

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

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    What Skimask try to say in it's own words ... this is Melabs PICBASIC forum and not Crownhill PROTON (PDS or else) forum.

    PROTON Picbasic forum is located
    www.picbasic.org/forum
    Awwwwww.....I was having fun too!

  7. #7
    Join Date
    Aug 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Post

    Dough... I am sorry, guys... I actually thought that it was the same thing, since the code from this forum, end especially this topic always worked for me.. Is the syntax really the same??

    I'll try the other forum...

    sorry again..
    Regards
    Denis Tcherniak

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


    Did you find this post helpful? Yes | No

    Default

    Syntax are slightly different... but both are named PICBASIC, hence the confusion. Don't worry about that
    Steve

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

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 01:43
  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. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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