Tip: For Non working gLCD on EasyPic5 Board


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Thumbs down

    Hi, Manwolf

    You really need a new pair of glasses ...

    Code:
    '     Dev.Board:       EasyPIC5
    '     Oscillator:      HS, 8.000 MHz
    '     Ext. Modules:    None
    '     SW:              mikroBasic v7.0
    ' * NOTES:
    '     - to turn ON Glcd backlight switch "GLCD" on SW9 (board specific)
    ' *
    
    program Glcd_Test
    
    include __Lib_images
    
    dim
      ii as byte
      jj as word
      someText as string[25]
    
    sub procedure delay2S
      delay_ms(2000)                               ' 2 second delay sub procedure
    end sub
    
    
    main:
    [b]  ANSEL  = 0                                   ' Configure AN pins as digital I/O
      ANSELH = 0[b]
      
      Glcd_Init(PORTB, 0, 1, 2, 3, 5, 4, PORTD)    ' Glcd_Init_EP5, see Autocomplete
      Glcd_Fill(0xAA)
      delay2S
    
    ....
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    May 2008
    Location
    Florida
    Posts
    64


    Did you find this post helpful? Yes | No

    Talking

    You calling me a BLIND old man now? Darn thought I was safe hiding here on this Internet thingy. HaHa

    Code:
    '     Dev.Board:       EasyPIC5
    '     Oscillator:      HS, 8.000 MHz
    '     Ext. Modules:    None
    '     SW:              mikroBasic v5.0 or higher
    ' * NOTES:
    '     None
    ' *)
    program GlcdTest
    
    include "__Lib_images"
    
    dim
      ii as byte
      jj as word
      someText as string[20]
    
    sub procedure delay2S
      delay_ms(2000)
    end sub
    
    main:
      Glcd_Init(PORTB, 0, 1, 2, 3, 5, 4, PORTD)  ' Init for EasyPIC5 board
      Glcd_Fill(0xAA)
      delay2S
      while TRUE
        Glcd_Fill(0x00)
        Glcd_Image( truck_bmp )
        delay2S
    
        Glcd_Fill(0x00)
    Notice the SW version v5.0 and up in mine and yours has 7.0.

    My example came straight off the CD that came with the board.

    And yes I <b>really</b> do need new glasses, I have an appointment Wednesday. LOL

    What really makes me upset is the fact you had just pointed out that issue with my code for the LCD.

    But to be fair I wrote the code for the LCD myself and I <b>assumed</b> that MikroBasic added the Port setup for you in the example.

    I lost the manual when I was born and can't find the brightness knob!

Similar Threads

  1. EasyPIC5 Board
    By Pic_User in forum Off Topic
    Replies: 3
    Last Post: - 1st March 2008, 13:14

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