+ Reply to Thread
Results 1 to 8 of 8

Thread: Custom LCD Chrs & Plugin

  1. #1
    Licensed User swright's Avatar
    Join Date
    Oct 2004
    Location
    Cumbria, UK
    Posts
    418

    Default Custom LCD Chrs & Plugin

    I've just discovered how to generate custom characters on an alphanumeric LCD display - I'm sure that everybody else discovered this ages ago. All the same, I've attached a small application to generate the print string, as well as a plugin .mcp file (although I'm not sure that I've done this right).

    It is possible to generate the characters 0 - 7 in character ram (CGRAM) by sending Print $FE, followed by the number $40 - $78 for the chr start address in CGRAM, followed by eight values to represent the 5 LSB for the 8 rows of each character, e.g. Print $FE,$40,$E4,$EE,$FF,$EE,$EE,$EE,$EE,$E0 for chr(0).

    Then to use these characters, simply print 0 to 7, e.g. Print At 1,1, 0

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




    I hope that the app is self-explanatory. Click to swap pixel state, select chr number, then cut & paste print string into app.

    Example code for 8 chrs:
    Code:
     
    Print $FE,$40,$E4,$EE,$FF,$EE,$EE,$EE,$EE,$E0 '$FE,$40 for CGRAM for user chr 0 
    
    Print $FE,$48,$E4,$EE,$F1,$EE,$EE,$EE,$EE,$E0 '$FE,$48 for CGRAM for user chr 1 etc. (8 chrs possible) ($40,$48,$50,$58,$60,$68,$70,$78)
    
    Print $FE,$50,$E4,$EA,$F1,$EA,$EE,$EE,$EE,$E0
     
    Print $FE,$58,$EE,$EE,$EE,$EE,$FF,$EE,$E4,$E0
     
    Print $FE,$60,$EE,$EE,$EE,$EE,$F1,$EE,$E4,$E0
     
    Print $FE,$68,$EE,$EE,$EE,$EA,$F1,$EA,$E4,$E0
     
    Print $FE,$70,$E0,$E0,$E0,$E4,$E0,$E4,$E0,$E0
     
    Print $FE,$78,$E0,$E2,$E2,$E4,$E4,$E8,$E8,$E0
     
    Print At 1,1, 0,1,2,3,4,5,6,7
     
    
    Regards, Steven


  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User swright's Avatar
    Join Date
    Oct 2004
    Location
    Cumbria, UK
    Posts
    418


    Exclamation

    Sorry - new version attached - corrected an error!

  4. #3
    Licensed User Tim's Avatar
    Join Date
    Jan 2003
    Location
    london
    Posts
    6,950


    Default

    Steve

    Great stuff a handy neat little plugin!!!
    Tim

  5. #4
    Licensed User the.fox's Avatar
    Join Date
    Oct 2002
    Location
    West Lothian. Scotland
    Posts
    174


    Thumbs up

    Steven,

    Very nice plugin and very useful....

    Would it be possible to add a paste button which would paste the generate print line to the current cursor position in the code.

    Also, just out of interest... what language did you write the plugin in?

    Paul.

  6. #5
    Licensed User swright's Avatar
    Join Date
    Oct 2004
    Location
    Cumbria, UK
    Posts
    418


    Default

    Thanks. If I can get my head around the DLL calls, yes I'll add a paste button. I had thought of this, but cried shy..! It will do me good to get to grips with it. The app was written in VB6.

    Kind regards,

    Steven

  7. #6
    lineyu
    Guest lineyu's Avatar


    Default Tnx

    i have been looking for this whole day

  8. #7
    Licensed User Nigel Worsley's Avatar
    Join Date
    Oct 2005
    Location
    Ealing, West London
    Posts
    299


    Cool

    Quote Originally Posted by swright View Post
    If I can get my head around the DLL calls, yes I'll add a paste button.
    No DLL calls are required, you need one command to make the IDE the current window and another one to feed the control-V to it:

    Code:
        AppActivate "Proton IDE"    
        SendKeys "^V"
    It doesn't get much easier, once you know how of course. It took quite a bit of research to work out how to do this when I needed to a few years back!

  9. #8


    Default Re: Custom LCD Chrs & Plugin

    I know this thread is a little old, but where is the plugin??

+ Reply to Thread

Similar Threads

  1. Custom Bootloader
    By Harrison in forum The Lounge
    Replies: 6
    Last Post: 19th March 2011, 05:27
  2. custom characters
    By Prasad in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 23rd June 2007, 18:30
  3. Custom Characters for LCD
    By sNoZLoMbArDo in forum The Lounge
    Replies: 2
    Last Post: 20th February 2006, 15:02
  4. LCD custom characters
    By C_Moore in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 28th March 2005, 22:48
  5. Custom enclosures?
    By Cruster in forum The Lounge
    Replies: 17
    Last Post: 4th February 2005, 08:25

Members who have read this thread since 9th May 2012, 02:33 : 0

Actions :  (Set Date)  (Clear Date)

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