Displaying bitmaps on an OLED

Discussion in 'Programmer's Corner' started by Sparky49, Mar 9, 2015.

  1. Sparky49

    Thread Starter Well-Known Member

    Jul 16, 2011
    836
    417
    Hi all,

    I'm currently using the PIC24H MPLAB starter kit board, and I'd like to put a bitmap image on the OLED. However, I cannot understand the Graphics Library Guide and I cannot find any information regarding how to do this.

    I was wondering if anyone might be able to tell me exactly what I need to display an image, and where to download/access any header files or the like.

    So far, I have managed to convert my bitmap to a flash array, using microchips resource converter, but I have not been able to get my program to compile as it is missing things such as the gfx/gfx.h and other configuration header files. I cannot find the essential files required to make it work on any microchip help notes, but that is probably down to me. :)

    Many thanks for your time,

    Sparky

    Useful links:
    The microchip wiki I used: http://microchip.wikidot.com/gfx:bitmaps
    24H starter kit datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB Starter Kit for PIC24H User Guide_ds51780a.pdf
    Graphics Library Guide: http://ww1.microchip.com/downloads/en/DeviceDoc/DS-01394b.pdf
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,906
    1,789
    It's been several years since I did this using a PIC32 but it is a blast when you get it going. One way to start is get a hold of the Microchip Graphics Display Designer and play with it. When properly set up it can write an entire display program for you; it doesn't do much but display static screens but each can be full of any widget of the graphics library (including those bitmaps).

    I would oft use that as a staring point then pull out the useful parts and past into my real program.

    Sorry I don't have any better advice beyond the existing documentation may not work with the latest compilers or libraries. All that stuff is in a great stage of change and not everything has caught up (or as easy to use as it once was if you ask me).
     
Loading...