Graphic LCD with PICbasic pro


Results 1 to 40 of 42

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Mikroelektronika offers it's GLCG Bitmap editor in their Free version compilers ...

    nice tool to convert Bitmaps to " printable " files ...

    You just have to write the " driver " to print the 8192 generated pixels ... or exactly ... the 1024 bars !

    here's such file :

    Code:
    // ------------------------------------------------------
    // GLCD Picture name: truck.bmp
    // GLCD Model: KS0108 128x64
    // ------------------------------------------------------
    unsigned char const truck_bmp[1024] = {
       0,  0,  0,  0,  0,248,  8,  8,  8,  8,  8,  8, 12, 12, 12, 12,
      12, 10, 10, 10, 10, 10, 10,  9,  9,  9,  9,  9,  9,  9,  9,  9,
       9,  9,  9,  9,  9,  9,  9,  9,  9,  9,137,137,137,137,137,137,
     137,137,137,137,137,137,137,  9,  9,  9,  9,  9,  9,  9,  9,  9,
       9,  9, 13,253, 13,195,  6,252,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,255,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
     240,240,240,240,240,224,224,240,240,240,240,240,224,192,192,224,
     240,240,240,240,240,224,192,  0,  0,  0,255,255,255,255,255,195,
     195,195,195,195,195,195,  3,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,255,240, 79,224,255, 96, 96, 96, 32, 32, 32, 32, 32,
      32, 32, 32, 32, 32, 32, 32, 32, 64, 64, 64, 64,128,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,255,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
     255,255,255,255,255,  0,  0,  0,  0,255,255,255,255,255,  0,  0,
       0,  0,255,255,255,255,255,  0,  0,  0,255,255,255,255,255,129,
     129,129,129,129,129,129,128,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,255,  1,248,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,
       8,  8,  8,  8, 16,224, 24, 36,196, 70,130,130,133,217,102,112,
     160,192, 96, 96, 32, 32,160,160,224,224,192, 64, 64,128,128,192,
      64,128,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0, 63, 96, 96, 96,224, 96, 96, 96, 96, 96, 96,
      99, 99, 99, 99, 99, 96, 96, 96, 96, 99, 99, 99, 99, 99, 96, 96,
      96, 96, 99, 99, 99, 99, 99, 96, 96, 96, 99, 99, 99, 99, 99, 99,
      99, 99, 99, 99, 99, 99, 99, 96, 96, 96, 96, 96, 96, 96, 64, 64,
      64,224,224,255,246,  1, 14,  6,  6,  2,  2,  2,  2,  2,  2,  2,
       2,  2,  2,  2,130, 67,114, 62, 35, 16, 16,  0,  7,  3,  3,  2,
       4,  4,  4,  4,  4,  4,  4, 28, 16, 16, 16, 17, 17,  9,  9, 41,
     112, 32, 67,  5,240,126,174,128, 56,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,
       1,  1,127,127,127,127,255,255,247,251,123,191, 95, 93,125,189,
     189, 63, 93, 89,177,115,243,229,207, 27, 63,119,255,207,191,255,
     255,255,255,255,255,255,255,127,127,127,127,127,127,127,127,255,
     255,255,127,127,125,120,120,120,120,120,248,120,120,120,120,120,
     120,248,248,232,143,  0,  0,  0,  0,  0,  0,  0,  0,128,240,248,
     120,188,220, 92,252, 28, 28, 60, 92, 92, 60,120,248,248, 96,192,
     143,168,216,136, 49, 68, 72, 50,160, 96,  0,  0,  0,  0,  0,  0,
       0,  0,  0,128,192,248,248,248,248,252,254,254,254,254,254,254,
     254,254,254,254,254,255,255,255,255,255,246,239,208,246,174,173,
     169,128,209,208,224,247,249,255,255,252,220,240,127,255,223,255,
     255,255,255,255,255,254,254,255,255,255,255,255,255,255,254,255,
     255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,
     254,254,254,254,255,255,255,255,255,255,254,255,190,255,255,253,
     240,239,221,223,254,168,136,170,196,208,228,230,248,127,126,156,
     223,226,242,242,242,242,242,177, 32,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  1,  1,  1,  1,  3,  3,  3,  7,  7,  7,  7,  7, 15,
      15, 15,  7, 15, 15, 15,  7,  7, 15, 14, 15, 13, 15, 47, 43, 43,
      43, 43, 43, 47,111,239,255,253,253,255,254,255,255,255,255,255,
     191,191,239,239,239,191,255,191,255,255,255,255,255,255,255,255,
     255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
     255,255,255,255,127,127,127,127,255,255,191,191,191,191,255,254,
     255,253,255,255,255,251,255,255,255,127,125, 63, 31, 31, 31, 31,
      31, 31, 63, 15, 15,  7,  7,  3,  3,  3,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  0,
       1,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,
       1,  1,  1,  1,  3,  3,  3, 11, 11, 11, 11,  7,  3, 14,  6,  6,
       6,  2, 18, 19, 19,  3, 23, 21, 21, 17,  1, 19, 19,  3,  6,  6,
      14, 15, 15,  7, 15, 15, 15, 11,  2,  0,  0,  0,  0,  0,  0,  0,
       0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0
    };
    Alain
    Attached Images Attached Images
    Last edited by Acetronics2; - 29th January 2011 at 17:17.
    ************************************************** ***********************
    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 " !!!
    *****************************************

Similar Threads

  1. PICBASIC PRO 16F84 with 16X02 LCD
    By Marin in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2007, 03:13
  2. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 19:31
  3. Replies: 6
    Last Post: - 4th April 2007, 08:33
  4. Using LCD 40 x 4 with Picbasic pro
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th January 2006, 18:31
  5. PICBasic Pro interfacing with graphic LCDs
    By Demon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th April 2005, 06:34

Members who have read this thread : 1

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