Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JonHarrison

Pages: [1]
1
TFTs / Re: NHD-2.4-240320CF-CSXN#-F-- Regarding its manufacturing ID read
« on: November 01, 2017, 10:42:13 AM »
I use this function

void TFT_24_7789_ReadID()
{
TFT_24_7789_Write_Command(0x0004); /* read display ID */
uint8_t id[4];
 id[0] = TFT_24_7789_Read_Data(); /* dummy read */
 id[1] = TFT_24_7789_Read_Data(); /* ID1 */
 id[2] = TFT_24_7789_Read_Data(); /* ID2 */
 id[3] = TFT_24_7789_Read_Data(); /* ID3 */

TFT_delay(10);
}

returns 0x04,0x85,0x85,0x52

My display is configured with a 16-bit databus and the Read_Data returns a uint16. As suggested if your read command doesn't work, check the /RD control line and your hardware interface.


2
TFTs / NHD-2.4-240320CF-CSXN#-F Brightness Adjustment
« on: November 01, 2017, 10:28:18 AM »
I have been trying to adjust the brightness of this 2.4" TFT using the ST7789S controller commands without success.

As a test

    TFT_24_7789_Write_Command(0x0053); /* WRCTRLD Write CTRL display */
    TFT_24_7789_Write_Data(0x24);      /* BCTRL = 1 = brightness register active
                                          DD    = 0 = display dimming is off
                                          BL    = 1 = backlight control is on
                                       */
    for (uint16_t i = 0 ; i < 255 ;)
    {
        TFT_24_7789_Write_Command(0x0051);
        TFT_24_7789_Write_Data(i);
        TFT_delay(1000);
        i += 32;
    }

but there is no change in backlight level. Does anyone have any suggestions about what I'm doing wrong ?

Pages: [1]