Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Unhappy 3310 LCD trouble

    hello bitmaniac,
    In some previous posts, it is said that your code contains some errors. Can you point out those errors to me ? ? ?
    I'm having a hard time getting the nokia 3310 LCD to work.

  2. #2
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Matrix program data ? ? ?

    bitmaniac,
    Where do i have to place the data generated by the matrix program ???

  3. #3
    Join Date
    Aug 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Question Data placement

    shahidali55, you have to place the data in the start of your program, after the device and xtal definition. However, I stumbled on a problem with bitmaniacs matrix program. It generates code in one long string for ech line of the display, however these lines get to long for the PICBASIC to interpret them, so it cuts them off when they are longer than 250 symbols, so the picture gets ruined. I tried to write my own program, that would split the data in more lines, but when i split the data it for some reason ads a $00 byte after each line which results in shifted lines, that also ruins the graphic. Does anyone know how to deal with this?

    Any replies would be appreciated
    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
    I tried to write my own program, that would split the data in more lines, but when i split the data it for some reason ads a $00 byte after each line which results in shifted lines, that also ruins the graphic. Does anyone know how to deal with this?
    Well, since we can't see the program that you wrote and the problem that it entails, I can only speculate the problem is that you haven't changed the oil in your automobile or rotated the air in your tires yet this year.
    Post some code!

  5. #5
    Join Date
    Aug 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Wink Sorry for the inconvinence, language bug...

    I meant, that's not a bug in my program, it works perfectly, i mean the PICBASIC program. When I add multiple DATA statements eg.

    DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
    DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF

    and then make the pic "paste" all the data to the screen it adds an empty column after each DATA line. It draws the first 11 black lines then it adds an empty line, and then it continues to the second data line.

    Regards
    Denis Tcherniak

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Russian View Post
    I meant, that's not a bug in my program, it works perfectly, i mean the PICBASIC program. When I add multiple DATA statements eg.
    DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
    DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
    and then make the pic "paste" all the data to the screen it adds an empty column after each DATA line. It draws the first 11 black lines then it adds an empty line, and then it continues to the second data line.
    Regards
    Denis Tcherniak
    I don't follow what you're trying to say...pic 'paste'...adds empty column...???
    If it's not a bug in your program (what program? where?) and it's a PICBASIC problem, then post the code for the PICBASIC program. I've used DATA plenty of times without a problem, up to and including lines 254 characters long.

  7. #7
    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

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