SSD1963 : GUI_GetPixelIndex()

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

    • Hi

      Writing a pixel and reading it back gives different values:

      GUI_DrawPixel(0, 0);
      pixel = GUI_GetPixelIndex(0, 0);




      If I use my own function it works OK


      GUI_DrawPixel(0, 0);
      pixel = _GUI_GetPixelIndex(0, 0);


      Regards
    • Workaround :


      U16 LCD_DEVFUNC_READPIXEL_CUSTOM(int LayerIndex)
      {
      PortAPI.pfWrite16_A0(0x2e);
      return PortAPI.pfRead16_A1();
      }


      void LCD_X_Config(void)

      {
      .
      .
      .
      .
      LCD_SetDevFunc(0, LCD_DEVFUNC_READPIXEL, LCD_DEVFUNC_READPIXEL_CUSTOM);

      }

      Same can be used for LCD_DEVFUNC_READMPIXELS function

      Regards