Creating driver for a 1-bit per pixel Memory LCD

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Creating driver for a 1-bit per pixel Memory LCD

    I need to create a driver to use with emWin so that I can operate a 1-bit per pixel Memory LCD display. The display is accessed by using SPI and any whole line of the display can be redrawn. Any suggestion as to what driver to use? It seems that a LIN driver (GUIDRV_LIN_1) assumes that the display is memory-mapped and a FlexColor driver would be too inefficient since it would use 2 bytes to represent each pixel when in fact each pixel is only a single bit (Black or White). I am familiar with how to implement a FlexColor driver since I've done this once using a color LCD display.

    -Scott
  • Is the correct approach just to use?
    pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_FLEXCOLOR, GUICC_1, 0, 0);

    And then I will keep my own display buffer so that when _DrawBitmap() is called in my driver I will update the pixels in that buffer and then repaint the affected rows on the display?

    -Scott