Windows CE 5 Display Driver Sample (SPI OLED) RRS feed

  • Question

  • Actually i have a working SPI Streamdriver for an OLED display; this allows me to access the display within an application.

    But i want to write a standard wince display driver (GPE, FLAT, ???), so i can write for eg. a WinForm application without the need of the display driver (through createfile ...) in my application.

    Does there exist a sample display driver driver project for such a simple display ?


    Thanks in advance.

    Sunday, January 30, 2011 10:35 AM

All replies

  • I don't have a sample driver for OLED display but Windows ce display driver is a layered driver, you have to fill some function stub for your driver. see the following link to learn more about windows ce display drivers.

    For display driver samples, see the following msdn link

    Monday, January 31, 2011 6:34 AM
  • Yes thanks i already found these links about 'display driver'.

    My display isnt very intelligent - for now i only have a SetPixel method (with this method i can use some graphic libs based on SetPixel within the application) - so for the WinCe driver i have to find the right function stubs.

    Monday, January 31, 2011 8:45 AM
  • I checked the links and found out, that i should start with copying the files from a sample driver (ati) and adapt InitializeCard and SetMode.

    The normal driver acts via FrameBuffer, but the display i use is a simple (but graphical) spi-display.

    Monday, February 7, 2011 11:47 AM
  • I would not choose the ATI sample since it's too HW specific: I'd rather use HFLAT (see for info or VGAFLAT, both in %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\DISPLAY.

    The problem I see is performance: you use SPI I/F to draw the image on the display, don't you? Since you have not an actual frame buffer you need to allocate an adequate amount of RAM that you must sweep continuously to update the display.

    Is the SPI controller integrated in the processor or not? Can you perform DMA transfers from memory to the SPI ctrl?

    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom Check my blog:
    Monday, February 7, 2011 3:20 PM
  • Yes i already looked at the HFLAT or VGAFLAT.

    SPI I/F is used to draw the image (or a spcific pixel using SetPixel). I thinked also that there could be a performance problem using spi, but i will give it a try :). So a separate function/thread could swap the RAM memory continuously to update the display ?

    The SPI is integrated in the processor so i can take a look into data sheet about DMA.

    Monday, February 7, 2011 4:01 PM