Pretty cool display and development board PIC_LCD3310


Closed Thread
Results 1 to 6 of 6

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Hello World! example for Olimex board

    Here is an include file from the forum that has been modified/updated to work with the Olimex PIC_LCD3310 PIC18F67J50 board. Also included an example.

    Here is the LCD_3310ex.txt:
    Code:
    DEFINE OSC 48
    
    include "modedefs.bas"
    include "LCD_3310.pbp"
    start:
    pause 100
    
    gosub Lcd_Init                     'Initialize LCD
    gosub Lcd_Clear                     'Clear contents of screen
    pause 50
    
    PosX = 30                          'position 30 of 84 in the x direction
    PosY = 1                           'row 1 (of 0-5)
    gosub Lcd_GotoXY
    Lcd_Data = "H"
    gosub Lcd_SendChar
    Lcd_Data = "E"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "O"
    gosub Lcd_SendChar
    
    
    PosX = 30                        'position 30 of 84 in the x direction
    PosY = 4                         'row 4 (of 0 to 5)
    gosub Lcd_GotoXY
    Lcd_Data = "W"
    gosub Lcd_SendChar
    Lcd_Data = "O"
    gosub Lcd_SendChar
    Lcd_Data = "R"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "D"
    gosub Lcd_SendChar
    Lcd_Data = "!"
    gosub Lcd_SendChar
    
    pause 5000
    
    end
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by ScaleRobotics; - 24th March 2009 at 17:09.

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


    Did you find this post helpful? Yes | No

    Default

    This include file makes it a little easier to print to these 3310 displays. Otherwise a lot of code is required for printing each character. This simplifies printing text, as well as variables.
    To use printstr and printvar:

    Code:
    @ PrintStr 0,0, "If I write more than one line, it will scroll to the next one, and next."
    
    @ PrintVar 0,0, _anyvariablehere
    A few more details in these two posts:
    http://www.picbasic.co.uk/forum/show...3456#post73456
    http://www.picbasic.co.uk/forum/show...3728#post73728

    Include file:
    http://www.picbasic.co.uk/forum/atta...1&d=1271491258
    Last edited by ScaleRobotics; - 17th April 2010 at 10:08.

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Looks very tidy. Have you been able to use the SDcard and other peripherals?
    Does any demo software come with the unit?

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


    Did you find this post helpful? Yes | No

    Default

    It comes with some C code, which has been handy to take a look at some of the way they did things. The manufacturer's site is here: http://olimex.com/dev/pic-lcd3310.html

    I have not gotten around to the SD-CARD yet, but that is on my wish list. I did play around with the tilt sensor. Art, I have really enjoyed your youtube examples, (scrolling leds, and the odometer lcd rolls!) so I have one for you, only mine is too long, and less entertaining.

    Here is the tilt sensor thread: http://www.picbasic.co.uk/forum/showthread.php?t=10880

    Last edited by ScaleRobotics; - 18th April 2011 at 17:18.

  5. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Cool, I can see a tilt controlled car racing game as long as you
    can set a pixel anywhere on the screen.

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