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, ¶m, 1);
Is it really necessary to bitshift it and do an |= 0x02<<24 operation ?