This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-CC2640R2-SDK: SDK v1.50: Use DisplaySharp instead of Display?

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640R2F

Hi,

    I have 430BOOST-SHARP96 LCD connected to CC2640R2F Launchpad. Using Simple Peripheral example program I am able to output small text to the LCD. For my project I want to output large font and small font text and also a border. I found this DisplaySharp.c and DisplaySharp.h in the SDK. How do I use DisplaySharp instead of the usual Display? Do you have example LCD Graphics program using DisplaySharp.c and DisplaySharp.h?

-kel

  • Hi

    The Sharp display is the default display on the CC2640R2LP: The following code is from CC2640R2_LAUNCHXL.c:

    #if (BOARD_DISPLAY_USE_UART || BOARD_DISPLAY_USE_LCD)
    
    const Display_Config Display_config[] = {
    #if (BOARD_DISPLAY_USE_UART)
        {
    #  if (BOARD_DISPLAY_USE_UART_ANSI)
            .fxnTablePtr = &DisplayUartAnsi_fxnTable,
    #  else /* Default to minimal UART with no cursor placement */
            .fxnTablePtr = &DisplayUartMin_fxnTable,
    #  endif
            .object      = &displayUartObject,
            .hwAttrs     = &displayUartHWAttrs,
        },
    #endif
    #if (BOARD_DISPLAY_USE_LCD)
        {
            .fxnTablePtr = &DisplaySharp_fxnTable,
            .object      = &displaySharpObject,
            .hwAttrs     = &displaySharpHWattrs
        },
    #endif
    };

    Please see:

    BR

    Siri

  • Hi Siri,

    Thanks. I also saw the display example program that uses grlib.

    Another question. When I display print to Sharp LCD the display pixels are reversed. Meaning the background becomes black or reflective and the text is blank. How do I display print where the text is black and the background in blank?

    -kel