Brightness control on ST7789v TFT display using a STM board
I have a TFT display which outputs 320 X 240 pixels and I want to control the display brightness from the command itself which I found in the datasheet of the TFT display controller IC, so with the reference from the datasheet I have to trigger the WRDISBV in 51h and WRCTRLD 53h registers and in the 51h register I can vary the brightness from 0x00 to 0xff by passing any values in between, however after passing the command nothing is happening, I don't see any change in the brightness of the display.
How can I make this work using the command itself and not use any hardware to control the brightness?
Suggestions and ideas are welcome!
The link for the datasheet: https://www.rhydolabz.com/documents/33/ST7789.pdf
