Skip to content

1.75in AMOLED BSP : error in brightness setting command ? #120

@martinroger

Description

@martinroger

I tried to use bsp_display_brightness_set on the AMOLED 1.75in screen. The command seems never to return, but does yield.

I perused quickly the CO5300 datasheet for command 0x51, and I am unsure - or I do not understand - the logic in the brightness command :

uint32_t lcd_cmd = 0x51;
    lcd_cmd &= 0xff;
    lcd_cmd <<= 8;
    lcd_cmd |= 0x02 << 24;
    uint8_t param = brightness;
    esp_lcd_panel_io_tx_param(io_handle, lcd_cmd, &param, 1);

Is it really necessary to bitshift it and do an |= 0x02<<24 operation ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions